From dd4e1867f5f7fe3cbeca06d867b0afe124a0ad01 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Sun, 15 Feb 2026 20:29:57 +0530 Subject: [PATCH] fix: standalone credit/debit notes should not fetch any serial or batch by default (cherry picked from commit 2017edca88639515c0d8dc4735145837d1869542) --- erpnext/public/js/utils/serial_no_batch_selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/utils/serial_no_batch_selector.js b/erpnext/public/js/utils/serial_no_batch_selector.js index 5cc7238d6dd..6610078b9b4 100644 --- a/erpnext/public/js/utils/serial_no_batch_selector.js +++ b/erpnext/public/js/utils/serial_no_batch_selector.js @@ -708,7 +708,7 @@ erpnext.SerialBatchPackageSelector = class SerialNoBatchBundleUpdate { } render_data() { - if (this.bundle || this.frm.doc.is_return) { + if (this.bundle || (this.frm.doc.is_return && this.frm.doc.return_against)) { frappe .call({ method: "erpnext.stock.doctype.serial_and_batch_bundle.serial_and_batch_bundle.get_serial_batch_ledgers",