split struct
This commit is contained in:
@@ -241,7 +241,9 @@ class ReceiptComponentBuilder {
|
||||
List<int> bytes = [];
|
||||
|
||||
bytes += separator();
|
||||
bytes += row2Columns('Total Item', totalItems.toString());
|
||||
if (totalItems > 0) {
|
||||
bytes += row2Columns('Total Item', totalItems.toString());
|
||||
}
|
||||
bytes += row2Columns('Subtotal', subtotal);
|
||||
bytes += row2Columns('Diskon', discount);
|
||||
bytes += separator();
|
||||
|
||||
Reference in New Issue
Block a user