mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 05:58:27 +00:00
refactor: change warehousesData variable name
This commit is contained in:
@@ -400,10 +400,10 @@ frappe.ui.form.on("Production Plan", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
download_materials_required(frm) {
|
download_materials_required(frm) {
|
||||||
const warehousesData = [];
|
const warehouses_data = [];
|
||||||
|
|
||||||
if (frm.doc.for_warehouse) {
|
if (frm.doc.for_warehouse) {
|
||||||
warehousesData.push({ warehouse: frm.doc.for_warehouse });
|
warehouses_data.push({ warehouse: frm.doc.for_warehouse });
|
||||||
}
|
}
|
||||||
|
|
||||||
const fields = [
|
const fields = [
|
||||||
@@ -411,7 +411,7 @@ frappe.ui.form.on("Production Plan", {
|
|||||||
fieldname: "warehouses",
|
fieldname: "warehouses",
|
||||||
fieldtype: "Table MultiSelect",
|
fieldtype: "Table MultiSelect",
|
||||||
label: __("Warehouses"),
|
label: __("Warehouses"),
|
||||||
default: warehousesData,
|
default: warehouses_data,
|
||||||
options: "Production Plan Material Request Warehouse",
|
options: "Production Plan Material Request Warehouse",
|
||||||
reqd: 1,
|
reqd: 1,
|
||||||
get_query: function () {
|
get_query: function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user