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:
parent
e5091cbc0f
commit
7c45f45ebc
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user