fix: include Sales Invoice in SABB validation for packed items

(cherry picked from commit 2ce297aff8)
This commit is contained in:
Mihir Kandoi
2025-08-01 17:00:38 +05:30
committed by Mergify
parent cb0addc122
commit d862a742b0

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