Merge pull request #13036 from tundebabzy/issue-13019

Uncaught Server Exception : adjust_qty_for_expired_items #13019
This commit is contained in:
tundebabzy 2018-02-22 11:04:53 +01:00 committed by GitHub
commit 2949e9c5dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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})