fix: include Sales Invoice in SABB validation for packed items

This commit is contained in:
Mihir Kandoi
2025-08-01 17:00:38 +05:30
parent 6e8589a69a
commit 2ce297aff8

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