Merge branch 'prod' into test

This commit is contained in:
2026-05-06 09:30:39 +08:00
2 changed files with 10 additions and 5 deletions

View File

@@ -558,10 +558,11 @@ public interface PrinterImpl {
List<StockPrintDTO.InStockItem> items = record.getItems();
if (CollUtil.isNotEmpty(items)) {
for (StockPrintDTO.InStockItem item : items) {
String stockNumber = item.getStockNumber().stripTrailingZeros().toPlainString();
String amount = item.getAmount().stripTrailingZeros().toPlainString();
String stockNumber = bdToStr(item.getStockNumber());
String amount = bdToStr(item.getAmount());
// 左对齐排版,保证列对齐
String itemLine = key4(item.getConsName(), item.getUnit(), stockNumber, amount, 11, 9, 7);
String itemLine = key4(item.getConsName(), StrUtil.isBlank(item.getUnit()) ? "" : item.getUnit(), stockNumber, amount, 11, 9, 7);
builder.append(formatLabel(itemLine, signLabelInfo.s)).append(signLabelInfo.br);
}
}