Fix: Product units

This commit is contained in:
Amritanshu committed 2019-08-21 14:27:11 +05:30
1 parent fd1111f378
commit 5603c5d8fb
3 files changed
+5 -7

No files matched your search

+1 -2
View File
@@ -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,
+1 -2
View File
@@ -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,