feat: update success order
This commit is contained in:
@@ -136,7 +136,7 @@ class _PaymentAddOrderDialogState extends State<PaymentAddOrderDialog> {
|
||||
context.pushReplacement(
|
||||
SuccessSaveOrderPage(
|
||||
productQuantity: widget.items,
|
||||
order: data,
|
||||
orderId: selectOrder?.id ?? "",
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
@@ -146,7 +146,7 @@ class _PaymentSaveDialogState extends State<PaymentSaveDialog> {
|
||||
success: (data) {
|
||||
context.pushReplacement(SuccessSaveOrderPage(
|
||||
productQuantity: widget.items,
|
||||
order: data,
|
||||
orderId: data.id ?? "",
|
||||
));
|
||||
},
|
||||
error: (message) => AppFlushbar.showError(context, message),
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import 'package:enaklo_pos/data/models/response/product_response_model.dart';
|
||||
|
||||
import 'product_model.dart';
|
||||
|
||||
class OrderItem {
|
||||
final Product product;
|
||||
int quantity;
|
||||
|
||||
Reference in New Issue
Block a user