fix: rejected serial no field showing even if serial / batch feature not enabled

(cherry picked from commit c2f419ac3d)
This commit is contained in:
Rohit Waghchaure
2026-03-31 16:09:00 +05:30
committed by Mergify
parent 924983794b
commit 2c81f79df7

View File

@@ -44,7 +44,11 @@ $.extend(erpnext, {
}
if (["Purchase Receipt", "Purchase Invoice", "Subcontracting Receipt"].includes(frm.doc.doctype)) {
fields.push("add_serial_batch_for_rejected_qty", "rejected_serial_and_batch_bundle");
fields.push(
"add_serial_batch_for_rejected_qty",
"rejected_serial_and_batch_bundle",
"rejected_serial_no"
);
}
let child_name = "items";