diff --git a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py index 2d29d5b9e05..66546f71125 100644 --- a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py +++ b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py @@ -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