Fix: Product units

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

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,

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,