mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 17:45:04 +00:00
fix: include Sales Invoice in SABB validation for packed items
(cherry picked from commit 2ce297aff8)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user