From c72de6edaa3492a44128248ae2568167239528d9 Mon Sep 17 00:00:00 2001 From: Marica Date: Tue, 7 Jan 2020 13:06:08 +0530 Subject: [PATCH] fix: Added description and title to supplier selection popup in Material Request. (#20179) --- erpnext/stock/doctype/material_request/material_request.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/erpnext/stock/doctype/material_request/material_request.js b/erpnext/stock/doctype/material_request/material_request.js index 99195c300d..935d61310e 100644 --- a/erpnext/stock/doctype/material_request/material_request.js +++ b/erpnext/stock/doctype/material_request/material_request.js @@ -230,7 +230,8 @@ frappe.ui.form.on('Material Request', { make_purchase_order: function(frm) { frappe.prompt( - {fieldname:'default_supplier', label: __('For Default Supplier (optional)'), fieldtype: 'Link', options: 'Supplier'}, + {fieldname:'default_supplier', label: __('For Default Supplier (optional)'), description: __('Selected Supplier\ + must be the Default Supplier of one of the items below.'), fieldtype: 'Link', options: 'Supplier'}, (values) => { frappe.model.open_mapped_doc({ method: "erpnext.stock.doctype.material_request.material_request.make_purchase_order", @@ -238,7 +239,8 @@ frappe.ui.form.on('Material Request', { args: { default_supplier: values.default_supplier }, run_link_triggers: true }); - } + }, + __('Enter Supplier') ) },