diff --git a/erpnext/stock/serial_batch_bundle.py b/erpnext/stock/serial_batch_bundle.py index 7365d388fd0..890899c7343 100644 --- a/erpnext/stock/serial_batch_bundle.py +++ b/erpnext/stock/serial_batch_bundle.py @@ -801,7 +801,6 @@ class BatchNoValuation(DeprecatedBatchNoValuation): == CombineDatetime(self.sle.posting_date, self.sle.posting_time) ) & (parent.creation < self.sle.creation) - query = ( frappe.qb.from_(parent) .inner_join(child)