Merge branch 'master' into develop

This commit is contained in:
Nabin Hait
2018-02-22 18:10:39 +05:30
3 changed files with 5 additions and 7 deletions

View File

@@ -28,9 +28,6 @@ def get_qty_in_stock(item_code, item_warehouse_field, warehouse=None):
if stock_qty:
in_stock = stock_qty[0][0] > 0 and 1 or 0
if stock_qty:
in_stock = stock_qty[0][0] > 0 and 1 or 0
return frappe._dict({"in_stock": in_stock, "stock_qty": stock_qty, "is_stock_item": is_stock_item})