This commit is contained in:
efrilm
2025-10-08 17:06:23 +07:00
parent 1fbacae1f4
commit 290360674f
4 changed files with 114 additions and 5 deletions
@@ -371,8 +371,8 @@ class _PaymentPageState extends State<PaymentPage> {
orElse: () {},
success: (data) {
context.pushReplacement(SuccessPaymentPage(
productQuantity: widget.order.orderItems
?.map(
productQuantity: getOrderItemPending()
.map(
(item) => ProductQuantity(
product: Product(
name: item.productName,
@@ -443,6 +443,7 @@ class _PaymentPageState extends State<PaymentPage> {
final itemPending = widget.order.orderItems
?.where((item) => item.status == "pending")
.toList();
if (widget.isSplit == false) {
final request = PaymentRequestModel(
amount: widget.order.totalAmount ?? 0,
+2 -2
View File
@@ -274,7 +274,7 @@ class _SalesPageState extends State<SalesPage> {
.toProductQuantities(),
);
} else {
onPrint(
onPrintBill(
context,
productQuantity: orderDetail!.orderItems!
.toProductQuantities(),
@@ -282,7 +282,7 @@ class _SalesPageState extends State<SalesPage> {
);
}
},
label: 'Print',
label: 'Print Bill',
icon: Icon(
Icons.print,
),