feat: payment split
This commit is contained in:
@@ -760,7 +760,11 @@ class _SplitBillPageState extends State<SplitBillPage> {
|
||||
log("Split Order: ${splitItems.length}");
|
||||
|
||||
// Navigate to PaymentPage with the split order
|
||||
context.push(PaymentPage(order: splitOrder));
|
||||
context.push(PaymentPage(
|
||||
order: splitOrder,
|
||||
isSplit: true,
|
||||
splitType: 'ITEM',
|
||||
));
|
||||
} else {
|
||||
AppFlushbar.showError(context, "Pilih minimal satu produk untuk split");
|
||||
}
|
||||
@@ -781,7 +785,13 @@ class _SplitBillPageState extends State<SplitBillPage> {
|
||||
);
|
||||
|
||||
// Navigate to PaymentPage with the split order
|
||||
context.push(PaymentPage(order: splitOrder));
|
||||
context.push(
|
||||
PaymentPage(
|
||||
order: splitOrder,
|
||||
isSplit: true,
|
||||
splitType: 'AMOUNT',
|
||||
),
|
||||
);
|
||||
} else if (splitAmount > totalAmount) {
|
||||
AppFlushbar.showError(
|
||||
context, "Jumlah split tidak boleh melebihi total bill");
|
||||
|
||||
Reference in New Issue
Block a user