fix split bill
This commit is contained in:
@@ -450,6 +450,23 @@ class PrintUi {
|
||||
'${order.payments.last.splitNumber} / ${order.payments.last.splitTotal}',
|
||||
);
|
||||
|
||||
bytes += builder.separator();
|
||||
|
||||
bytes += builder.emptyLines(1);
|
||||
|
||||
for (final item in order.orderItems) {
|
||||
bytes += builder.orderItem(
|
||||
productName: item.productName,
|
||||
quantity: item.quantity,
|
||||
unitPrice: item.unitPrice.currencyFormatRpV2,
|
||||
totalPrice: item.totalPrice.currencyFormatRpV2,
|
||||
variantName: item.productVariantName,
|
||||
notes: item.notes,
|
||||
);
|
||||
}
|
||||
|
||||
bytes += builder.emptyLines(1);
|
||||
|
||||
bytes += builder.summary(
|
||||
totalItems: 0,
|
||||
subtotal: order.payments.last.amount.currencyFormatRpV2,
|
||||
|
||||
Reference in New Issue
Block a user