Skip to content

Commit

Permalink
fix: item mapping from modal to batch form (#44090)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9223ef2)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Nov 11, 2024
1 parent 363f151 commit 9ac54f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions erpnext/public/js/utils/serial_no_batch_selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 9ac54f6

Please sign in to comment.