feat: syn product

This commit is contained in:
efrilm
2025-08-03 00:35:00 +07:00
parent 576f687d21
commit 7678b4791d
28 changed files with 1922 additions and 948 deletions
@@ -39,7 +39,7 @@ class ProductQuantity {
return {
'id_order': orderId,
'id_product': product.productId,
'id_product': product.id,
'quantity': quantity,
'price': product.price,
'notes': notes,
@@ -47,11 +47,11 @@ class ProductQuantity {
}
Map<String, dynamic> toServerMap(int? orderId) {
log("toServerMap: ${product.productId}");
log("toServerMap: ${product.id}");
return {
'id_order': orderId ?? 0,
'id_product': product.productId,
'id_product': product.id,
'quantity': quantity,
'price': product.price,
'notes': notes,