From c15978fca0ef9b26575b403ca0a22192e0b82ccb Mon Sep 17 00:00:00 2001 From: tundebabzy Date: Thu, 22 Feb 2018 09:50:49 +0100 Subject: [PATCH] fix indentation --- erpnext/utilities/product.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/erpnext/utilities/product.py b/erpnext/utilities/product.py index 415056d80bc..b0cfbae80a7 100644 --- a/erpnext/utilities/product.py +++ b/erpnext/utilities/product.py @@ -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})