Skip to content

Commit

Permalink
printer ラベルの全体数を修正 (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
toririm authored Nov 3, 2024
1 parent cc16223 commit 0248bd9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pos/app/label/print-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ export const usePrinter = () => {
console.log(coffees);

for (const [idx, item] of coffees.entries()) {
printSingleItemLabel(order.orderId, idx + 1, items.length, item);
printSingleItemLabel(
order.orderId,
idx + 1,
order.getCoffeeCups().length,
item,
);
}
rawPrinter.addFeed(7);
rawPrinter.print();
Expand Down

0 comments on commit 0248bd9

Please sign in to comment.