We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99bc2c1 commit 090aab3Copy full SHA for 090aab3
1 file changed
erpnext/stock/report/stock_ageing/stock_ageing.py
@@ -615,5 +615,5 @@ def prepare_stock_reco_voucher_wise_count(self):
615
sr_item = frappe.db.get_value(
616
"Stock Reconciliation Item", row.voucher_detail_no, ["current_qty", "qty"], as_dict=True
617
)
618
- if sr_item.qty and sr_item.current_qty:
+ if sr_item and sr_item.qty and sr_item.current_qty:
619
self.stock_reco_voucher_wise_count[row.voucher_detail_no] = sr_item.current_qty
0 commit comments