mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-08 15:51:19 +00:00
fix: Divide by zero exception fix in item wise purchase register (#16247)
* Do not prepare row if stock quantity is not available * Update item_wise_purchase_register.py
This commit is contained in:
@@ -34,6 +34,9 @@ def _execute(filters=None, additional_table_columns=None, additional_query_colum
|
|||||||
|
|
||||||
data = []
|
data = []
|
||||||
for d in item_list:
|
for d in item_list:
|
||||||
|
if not d.stock_qty:
|
||||||
|
continue
|
||||||
|
|
||||||
purchase_receipt = None
|
purchase_receipt = None
|
||||||
if d.purchase_receipt:
|
if d.purchase_receipt:
|
||||||
purchase_receipt = d.purchase_receipt
|
purchase_receipt = d.purchase_receipt
|
||||||
|
|||||||
Reference in New Issue
Block a user