Fix: New Recipe would not recognize that is product is sold.

This commit is contained in:
tanshu 2016-03-22 13:22:06 +05:30
parent e9504753a5
commit 3f7ae4225d

View File

@ -182,7 +182,7 @@ def show_term(request):
if extended: if extended:
product = {'ProductID': item.id, 'Name': item.full_name, 'Price': item.price, 'Units': item.units, product = {'ProductID': item.id, 'Name': item.full_name, 'Price': item.price, 'Units': item.units,
'Fraction': item.fraction, 'FractionUnits': item.fraction_units, 'Fraction': item.fraction, 'FractionUnits': item.fraction_units,
'ProductYield': item.product_yield} 'ProductYield': item.product_yield, 'IsSold' item.is_sold, 'SalePrice': item.sale_price}
else: else:
product = {'ProductID': item.id, 'Name': item.full_name, 'Price': item.price} product = {'ProductID': item.id, 'Name': item.full_name, 'Price': item.price}
local_results.append(product) local_results.append(product)