打印样式修改
This commit is contained in:
@@ -128,9 +128,6 @@ public class FeieyunPrintUtil {
|
|||||||
builder.append("<B><BOLD>" + productName + " x " + number + "</BOLD></B><BR><BR>");
|
builder.append("<B><BOLD>" + productName + " x " + number + "</BOLD></B><BR><BR>");
|
||||||
builder.append("<B><BOLD>" + remark + " </BOLD></B><BR>");
|
builder.append("<B><BOLD>" + remark + " </BOLD></B><BR>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
builder.append("<BR><BR><BR><BR><BR><BR>");
|
|
||||||
builder.append("<CUT>");
|
builder.append("<CUT>");
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
@@ -236,9 +233,9 @@ public class FeieyunPrintUtil {
|
|||||||
String t = "¥" + (ObjectUtil.isEmpty(detailPO.getDiscountAmount()) || ObjectUtil.isNull(detailPO.getDiscountAmount()) ? detailPO.getReceiptsAmount() : new BigDecimal(detailPO.getReceiptsAmount()).subtract(new BigDecimal(detailPO.getDiscountAmount())).toPlainString());
|
String t = "¥" + (ObjectUtil.isEmpty(detailPO.getDiscountAmount()) || ObjectUtil.isNull(detailPO.getDiscountAmount()) ? detailPO.getReceiptsAmount() : new BigDecimal(detailPO.getReceiptsAmount()).subtract(new BigDecimal(detailPO.getDiscountAmount())).toPlainString());
|
||||||
t = String.format("%11s", t).replace(' ', ' ');
|
t = String.format("%11s", t).replace(' ', ' ');
|
||||||
if (orderType.equals("return")) {
|
if (orderType.equals("return")) {
|
||||||
data.append(StrUtil.format("应退:{}<BR>", t));
|
data.append(StrUtil.format("<B>应退:{}</B><BR>", t));
|
||||||
} else {
|
} else {
|
||||||
data.append(StrUtil.format("应收:{}<BR>", t));
|
data.append(StrUtil.format("<B>应收:{}</B><BR>", t));
|
||||||
}
|
}
|
||||||
if (ObjectUtil.isNotEmpty(detailPO.getPayType()) && ObjectUtil.isNotNull(detailPO.getPayType()) && detailPO.getPayType().equals("deposit")) {
|
if (ObjectUtil.isNotEmpty(detailPO.getPayType()) && ObjectUtil.isNotNull(detailPO.getPayType()) && detailPO.getPayType().equals("deposit")) {
|
||||||
data.append("--------------------------------<BR>");
|
data.append("--------------------------------<BR>");
|
||||||
|
|||||||
Reference in New Issue
Block a user