feat: syn product
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user