feat: make server own products
This commit is contained in:
@@ -207,7 +207,9 @@ class TabEventFactory {
|
||||
customerName: customerName,
|
||||
fields: {
|
||||
'lineId': lineId,
|
||||
'productId': productId,
|
||||
// Lines taken over from a tablet's own tabs have no product: the
|
||||
// server then matches them by name and price, and refuses an empty id
|
||||
if (productId.isNotEmpty) 'productId': productId,
|
||||
'productName': productName,
|
||||
'unitPriceInCents': unitPriceInCents,
|
||||
'quantity': quantity,
|
||||
|
||||
Reference in New Issue
Block a user