Merge pull request #48910 from frappe/mergify/bp/version-15-hotfix/pr-48908

fix: include Sales Invoice in SABB validation for packed items (backport #48908)
This commit is contained in:
Mihir Kandoi
2025-08-01 17:34:59 +05:30
committed by GitHub

View File

@@ -145,7 +145,7 @@ class SerialandBatchBundle(Document):
)
elif not frappe.db.exists("Stock Ledger Entry", {"voucher_detail_no": self.voucher_detail_no}):
if self.voucher_type == "Delivery Note" and frappe.db.exists(
if self.voucher_type in ["Delivery Note", "Sales Invoice"] and frappe.db.exists(
"Packed Item", self.voucher_detail_no
):
return