Skip to content

Commit

Permalink
fix: available qty not fetching for raw material in PP
Browse files Browse the repository at this point in the history
(cherry picked from commit 8e3463c)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed May 24, 2023
1 parent 989052c commit 746a734
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions erpnext/manufacturing/doctype/production_plan/production_plan.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,14 @@ frappe.ui.form.on("Material Request Plan Item", {
for_warehouse: row.warehouse
},
callback: function(r) {
let {projected_qty, actual_qty} = r.message;
if (r.message) {
let {projected_qty, actual_qty} = r.message[0];

frappe.model.set_value(cdt, cdn, 'projected_qty', projected_qty);
frappe.model.set_value(cdt, cdn, 'actual_qty', actual_qty);
frappe.model.set_value(cdt, cdn, {
'projected_qty': projected_qty,
'actual_qty': actual_qty
});
}
}
})
}
Expand Down

0 comments on commit 746a734

Please sign in to comment.