From d973fb8823031899b1ab0002d5f1aea21612d39d Mon Sep 17 00:00:00 2001 From: Marica Date: Tue, 7 Jan 2020 13:04:56 +0530 Subject: [PATCH] fix: Added description and title to supplier selection popup in Material Request (#20181) * fix: Added description and title to supplier selection popup in Material Request * Update material_request.js cleanup Co-authored-by: rohitwaghchaure --- .../doctype/material_request/material_request.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/erpnext/stock/doctype/material_request/material_request.js b/erpnext/stock/doctype/material_request/material_request.js index a0fc3f34e20..3cf347e9473 100644 --- a/erpnext/stock/doctype/material_request/material_request.js +++ b/erpnext/stock/doctype/material_request/material_request.js @@ -217,7 +217,13 @@ 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'}, + { + label: __('For Default Supplier (optional)'), + fieldname:'default_supplier', + fieldtype: 'Link', + options: 'Supplier', + description: __('Selected Supplier must be the Default Supplier of one of the items below.'), + }, (values) => { frappe.model.open_mapped_doc({ method: "erpnext.stock.doctype.material_request.material_request.make_purchase_order", @@ -225,7 +231,8 @@ frappe.ui.form.on('Material Request', { args: { default_supplier: values.default_supplier }, run_link_triggers: true }); - } + }, + __('Enter Supplier') ) },