void product
This commit is contained in:
parent
96387c08f4
commit
aa25de8da7
@ -271,12 +271,18 @@ class _SalesPageState extends State<SalesPage> {
|
|||||||
nominalBayar: orderDetail?.totalPaid ?? 0,
|
nominalBayar: orderDetail?.totalPaid ?? 0,
|
||||||
kembalian: 0,
|
kembalian: 0,
|
||||||
productQuantity: orderDetail!.orderItems!
|
productQuantity: orderDetail!.orderItems!
|
||||||
|
.where((item) =>
|
||||||
|
item.status != 'cancelled')
|
||||||
|
.toList()
|
||||||
.toProductQuantities(),
|
.toProductQuantities(),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
onPrintBill(
|
onPrintBill(
|
||||||
context,
|
context,
|
||||||
productQuantity: orderDetail!.orderItems!
|
productQuantity: orderDetail!.orderItems!
|
||||||
|
.where((item) =>
|
||||||
|
item.status != 'cancelled')
|
||||||
|
.toList()
|
||||||
.toProductQuantities(),
|
.toProductQuantities(),
|
||||||
order: orderDetail!,
|
order: orderDetail!,
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user