mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
fix: 'NoneType' object has no attribute 'get' in get_item_details.py (#49381)
This commit is contained in:
@@ -202,7 +202,7 @@ def update_stock(ctx, out, doc=None):
|
|||||||
"item_code": ctx.item_code,
|
"item_code": ctx.item_code,
|
||||||
"warehouse": ctx.warehouse,
|
"warehouse": ctx.warehouse,
|
||||||
"based_on": frappe.get_single_value("Stock Settings", "pick_serial_and_batch_based_on"),
|
"based_on": frappe.get_single_value("Stock Settings", "pick_serial_and_batch_based_on"),
|
||||||
"sabb_voucher_no": doc.get("name"),
|
"sabb_voucher_no": doc.get("name") if doc else None,
|
||||||
"sabb_voucher_detail_no": ctx.child_docname,
|
"sabb_voucher_detail_no": ctx.child_docname,
|
||||||
"sabb_voucher_type": ctx.doctype,
|
"sabb_voucher_type": ctx.doctype,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user