Fix: Product units
This commit is contained in:
@ -216,8 +216,7 @@ def show_list_sale(request):
|
||||
products.append(
|
||||
{
|
||||
"id": item.id,
|
||||
"name": "H H " + item.name,
|
||||
"units": item.units,
|
||||
"name": "H H " + item.full_name,
|
||||
"saleCategory": {
|
||||
"id": item.sale_category_id,
|
||||
"name": item.sale_category.name,
|
||||
|
||||
@ -113,8 +113,7 @@ def voucher_info(item):
|
||||
"sortOrder": i.sort_order,
|
||||
"product": {
|
||||
"id": i.product_id,
|
||||
"name": i.product.name,
|
||||
"units": i.product.units,
|
||||
"name": i.product.full_name,
|
||||
"menuCategory": {
|
||||
"id": i.product.menu_category_id,
|
||||
"name": i.product.menu_category.name,
|
||||
|
||||
Reference in New Issue
Block a user