feat: split add customer optional

This commit is contained in:
efrilm
2025-08-07 22:45:06 +07:00
parent de22251440
commit b1a1303a40
2 changed files with 138 additions and 106 deletions
@@ -19,11 +19,13 @@ class PaymentPage extends StatefulWidget {
final Order order;
final bool isSplit;
final String? splitType;
final String? customerId;
const PaymentPage({
super.key,
required this.order,
this.isSplit = false,
this.splitType,
this.customerId,
});
@override
@@ -462,7 +464,7 @@ class _PaymentPageState extends State<PaymentPage> {
} else {
final request = PaymentSplitBillRequest(
amount: widget.order.totalAmount ?? 0,
customerId: '',
customerId: widget.customerId ?? "",
items: itemPending
?.map((item) => SplitItem(
orderItemId: item.id ?? "",