fix: Company is required to get bin details (#19058)
This commit is contained in:
parent
72dcb51177
commit
57835f0a37
@ -272,11 +272,12 @@ frappe.ui.form.on("Production Plan Item", {
|
||||
frappe.ui.form.on("Material Request Plan Item", {
|
||||
warehouse: function(frm, cdt, cdn) {
|
||||
const row = locals[cdt][cdn];
|
||||
if (row.warehouse && row.item_code) {
|
||||
if (row.warehouse && row.item_code && frm.doc.company) {
|
||||
frappe.call({
|
||||
method: "erpnext.manufacturing.doctype.production_plan.production_plan.get_bin_details",
|
||||
args: {
|
||||
row: row,
|
||||
company: frm.doc.company,
|
||||
for_warehouse: row.warehouse
|
||||
},
|
||||
callback: function(r) {
|
||||
|
Loading…
Reference in New Issue
Block a user