mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 01:34:10 +00:00
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:
@@ -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