Skip to content

Commit 090aab3

Browse files
fix: py error on stock ageing report (backport #54467) (#54469)
fix: py error on stock ageing report (#54467) (cherry picked from commit f5357c2) Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
1 parent 99bc2c1 commit 090aab3

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
@@ -615,5 +615,5 @@ def prepare_stock_reco_voucher_wise_count(self):
615615
sr_item = frappe.db.get_value(
616616
"Stock Reconciliation Item", row.voucher_detail_no, ["current_qty", "qty"], as_dict=True
617617
)
618-
if sr_item.qty and sr_item.current_qty:
618+
if sr_item and sr_item.qty and sr_item.current_qty:
619619
self.stock_reco_voucher_wise_count[row.voucher_detail_no] = sr_item.current_qty

0 commit comments

Comments
 (0)