Merge pull request #48908 from mihir-kandoi/st45545

fix: include Sales Invoice in SABB validation for packed items
This commit is contained in:
Mihir Kandoi
2025-08-01 17:18:57 +05:30
committed by GitHub

View File

@@ -146,7 +146,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