From 3f7ae4225d513342dbca83d3ceb8149ec9fe92e9 Mon Sep 17 00:00:00 2001 From: tanshu Date: Tue, 22 Mar 2016 13:22:06 +0530 Subject: [PATCH] Fix: New Recipe would not recognize that is product is sold. --- brewman/views/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brewman/views/product.py b/brewman/views/product.py index 466c9823..10073000 100644 --- a/brewman/views/product.py +++ b/brewman/views/product.py @@ -182,7 +182,7 @@ def show_term(request): if extended: product = {'ProductID': item.id, 'Name': item.full_name, 'Price': item.price, 'Units': item.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: product = {'ProductID': item.id, 'Name': item.full_name, 'Price': item.price} local_results.append(product)