Skip to content

Commit

Permalink
fix: required_qty get reset to 1 for Alternative Item in WO
Browse files Browse the repository at this point in the history
(cherry picked from commit 046834a)
  • Loading branch information
s-aga-r authored and mergify[bot] committed Mar 9, 2023
1 parent 68b9581 commit 51bcdb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/manufacturing/doctype/work_order/work_order.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ frappe.ui.form.on("Work Order Item", {
callback: function(r) {
if (r.message) {
frappe.model.set_value(cdt, cdn, {
"required_qty": 1,
"required_qty": row.required_qty || 1,
"item_name": r.message.item_name,
"description": r.message.description,
"source_warehouse": r.message.default_warehouse,
Expand Down

0 comments on commit 51bcdb3

Please sign in to comment.