fix(Asset Repair): Display 'Completion Date' and 'Repair Status' only after save

This commit is contained in:
GangaManoj 2021-05-11 00:08:39 +05:30
parent bbbd61dab8
commit 1c26b27a89

View File

@ -2,6 +2,10 @@
// For license information, please see license.txt
frappe.ui.form.on('Asset Repair', {
refresh: function(frm) {
frm.toggle_display(['completion_date', 'repair_status'], !(frm.doc.__islocal));
},
repair_status: (frm) => {
if (frm.doc.completion_date && frm.doc.repair_status == "Completed") {
frappe.call ({