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