打印样式修改
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>" + remark + " </BOLD></B><BR>");
|
||||
}
|
||||
|
||||
|
||||
builder.append("<BR><BR><BR><BR><BR><BR>");
|
||||
builder.append("<CUT>");
|
||||
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());
|
||||
t = String.format("%11s", t).replace(' ', ' ');
|
||||
if (orderType.equals("return")) {
|
||||
data.append(StrUtil.format("应退:{}<BR>", t));
|
||||
data.append(StrUtil.format("<B>应退:{}</B><BR>", t));
|
||||
} 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")) {
|
||||
data.append("--------------------------------<BR>");
|
||||
|
||||
Reference in New Issue
Block a user