Add order items
This commit is contained in:
@@ -110,6 +110,7 @@ func OrderModelToContract(resp *models.OrderResponse) *contract.OrderResponse {
|
||||
CreatedAt: item.CreatedAt,
|
||||
UpdatedAt: item.UpdatedAt,
|
||||
PrinterType: item.PrinterType,
|
||||
PaidQuantity: item.PaidQuantity,
|
||||
}
|
||||
}
|
||||
// Map payments
|
||||
@@ -379,7 +380,7 @@ func SplitBillContractToModel(req *contract.SplitBillRequest) *models.SplitBillR
|
||||
for i, item := range req.Items {
|
||||
items[i] = models.SplitBillItemRequest{
|
||||
OrderItemID: item.OrderItemID,
|
||||
Amount: item.Amount,
|
||||
Quantity: item.Quantity,
|
||||
}
|
||||
}
|
||||
return &models.SplitBillRequest{
|
||||
|
||||
Reference in New Issue
Block a user