Skip to content

Commit f5357c2

Browse files
authored
fix: py error on stock ageing report (#54467)
1 parent 0d2da6d commit f5357c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

erpnext/stock/report/stock_ageing/stock_ageing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,5 +617,5 @@ def prepare_stock_reco_voucher_wise_count(self):
617617
sr_item = frappe.db.get_value(
618618
"Stock Reconciliation Item", row.voucher_detail_no, ["current_qty", "qty"], as_dict=True
619619
)
620-
if sr_item.qty and sr_item.current_qty:
620+
if sr_item and sr_item.qty and sr_item.current_qty:
621621
self.stock_reco_voucher_wise_count[row.voucher_detail_no] = sr_item.current_qty

0 commit comments

Comments
 (0)