Merge pull request #53124 from frappe/mergify/bp/version-15-hotfix/pr-53123

fix: serial no status for Disassemble entry (backport #53123)
This commit is contained in:
Mihir Kandoi
2026-03-03 21:12:48 +05:30
committed by GitHub

View File

@@ -444,6 +444,11 @@ class SerialBatchBundle:
if sle.voucher_type in ["Sales Invoice", "Delivery Note"] and sle.actual_qty < 0:
customer = frappe.get_cached_value(sle.voucher_type, sle.voucher_no, "customer")
if sle.voucher_type in ["Stock Entry"] and sle.actual_qty < 0:
purpose = frappe.get_cached_value("Stock Entry", sle.voucher_no, "purpose")
if purpose in ["Disassemble", "Material Receipt"]:
status = "Inactive"
sn_table = frappe.qb.DocType("Serial No")
query = (