Compare commits

...

2 Commits

1 changed files with 4 additions and 0 deletions

View File

@ -217,6 +217,10 @@ public class BarcodeService {
String concatenatedIds = bundles.stream()
.map(bundle -> String.valueOf(bundle.getId()))
.collect(Collectors.joining("\\"));
int totalWrappedQuantity = bundles.stream()
.mapToInt(e->e.getWrapQuantity().intValue())
.sum();
this.drawCenteredText(g2d, "Total-Pieces: " + totalWrappedQuantity, detailFont, x, y, pageWidth, cols, stickerSize.getMarginTop() + 270, stickerSize.getMarginLeft());
this.drawCenteredText(g2d, "Sub-Bundles: " + concatenatedIds, detailFont, x, y, pageWidth, cols, stickerSize.getMarginTop() + 290, stickerSize.getMarginLeft());
}