From b2dc6ef1650e41b68a55fda2aeacf4ba36bea3db Mon Sep 17 00:00:00 2001 From: Mangesh-Khairnar Date: Tue, 2 Apr 2019 18:01:14 +0530 Subject: [PATCH] style: fix the message for reason for hold --- erpnext/buying/doctype/purchase_order/purchase_order.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.js b/erpnext/buying/doctype/purchase_order/purchase_order.js index c66c66dabdd..7d22160bea2 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.js +++ b/erpnext/buying/doctype/purchase_order/purchase_order.js @@ -36,7 +36,7 @@ frappe.ui.form.on("Purchase Order", { }, refresh: function(frm) { - if(frm.doc.docstatus == 1 && frm.doc.status != 'Closed' + if(frm.doc.docstatus == 1 && frm.doc.status != 'Closed' && flt(frm.doc.per_received) < 100 && flt(frm.doc.per_billed) < 100) { frm.add_custom_button(__('Update Items'), () => { erpnext.utils.update_child_items({ @@ -432,7 +432,7 @@ erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend( } }, - unhold_purchase_order: function(){ + unhold_purchase_order: function(){ cur_frm.cscript.update_status("Resume", "Draft") }, @@ -454,7 +454,7 @@ erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend( args: { reference_doctype: me.frm.doctype, reference_name: me.frm.docname, - content: __('Reason for hold:')+data.reason_for_hold, + content: __('Reason for hold: ')+data.reason_for_hold, comment_email: frappe.session.user }, callback: function(r) {