fix split bill

This commit is contained in:
Efril
2026-03-04 23:30:52 +07:00
parent a739e1c29e
commit 200f996d3e
6 changed files with 197 additions and 55 deletions
@@ -167,9 +167,9 @@ class ReceiptComponentBuilder {
}) {
List<int> bytes = [];
bytes += row2Columns('No. Pesanan', orderNumber);
bytes += row2Columns('Nomor', orderNumber, leftWidth: 4, rightWidth: 8);
bytes += row2Columns('Pelanggan', customerName);
bytes += row2Columns('Kasir', cashierName);
bytes += row2Columns('Kasir', cashierName, leftWidth: 4, rightWidth: 8);
if (paymentMethod != null) {
bytes += row2Columns(
@@ -209,11 +209,11 @@ class ReceiptComponentBuilder {
}) {
List<int> bytes = [];
final variantText = variantName != null && variantName.isNotEmpty
? "($variantName)"
: '';
final displayName = (variantName != null && variantName.isNotEmpty)
? '$productName ($variantName)'
: productName;
bytes += textLeft('$productName $variantText', bold: true);
bytes += textLeft(displayName);
bytes += row2Columns(
'$quantity x $unitPrice',
totalPrice,