style: add type comparison for boolean expression

This commit is contained in:
Mangesh-Khairnar 2019-04-05 14:10:05 +05:30
parent 3d667b4c94
commit 3c251663bb

View File

@ -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({