fix: item mapping from modal to batch form (#44090)

(cherry picked from commit 9223ef2f37)
This commit is contained in:
rohitwaghchaure
2024-11-11 16:07:16 +05:30
committed by Mergify
parent 363f15124e
commit 9ac54f694c

View File

@@ -437,6 +437,11 @@ erpnext.SerialBatchPackageSelector = class SerialNoBatchBundleUpdate {
fieldname: "batch_no",
label: __("Batch No"),
in_list_view: 1,
get_route_options_for_new_doc: () => {
return {
item: this.item.item_code,
};
},
change() {
let doc = this.doc;
if (!doc.qty && me.item.type_of_transaction === "Outward") {