This pull request addresses several issues in the codebase:
Issue #21: Deleting products was not working. The functionality has been reimplemented in the OrderProductsList component.
Issue #22: Adding products to an order that already exist in that order was adding a duplicate entry instead of increasing the quantity. This issue has been fixed.
Issue #20: Adding products in the add product view was also adding a duplicate entry instead of increasing the quantity. The add_product.dart file has been refactored to use a list of OrderProducts instead of a map to fix this issue.
Issue #19: Orders were missing coupons. Several changes have been made to address this issue, including adding new methods in OrdersExtensions to calculate the total amount of products, coupons, and the overall total. The show_result_info.dart and models_extensions.dart files have also been refactored.
Issue #23: Editing orderProducts was not functioning correctly. The edit product dialog has been implemented to fix this issue.
These changes should resolve the mentioned issues and improve the functionality of the codebase.
This pull request addresses several issues in the codebase:
Issue #21: Deleting products was not working. The functionality has been reimplemented in the
OrderProductsList
component.Issue #22: Adding products to an order that already exist in that order was adding a duplicate entry instead of increasing the quantity. This issue has been fixed.
Issue #20: Adding products in the add product view was also adding a duplicate entry instead of increasing the quantity. The
add_product.dart
file has been refactored to use a list ofOrderProducts
instead of a map to fix this issue.Issue #19: Orders were missing coupons. Several changes have been made to address this issue, including adding new methods in
OrdersExtensions
to calculate the total amount of products, coupons, and the overall total. Theshow_result_info.dart
andmodels_extensions.dart
files have also been refactored.Issue #23: Editing orderProducts was not functioning correctly. The
edit product dialog
has been implemented to fix this issue.These changes should resolve the mentioned issues and improve the functionality of the codebase.