fix: standalone credit/debit notes should not fetch any serial or batch by default

This commit is contained in:
Mihir Kandoi
2026-02-15 20:29:57 +05:30
parent fe01206a73
commit 2017edca88

View File

@@ -709,7 +709,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",