commit | 740df95c581446991b8c338454f4dc9b6e61dcee | [log] [tgz] |
---|---|---|
author | GangaManoj <ganga.manoj98@gmail.com> | Sun Jun 20 17:44:35 2021 +0530 |
committer | GangaManoj <ganga.manoj98@gmail.com> | Sun Jun 20 17:44:35 2021 +0530 |
tree | cca5af5b68537df3a6b0a6ab2922d0681aa98b6b | |
parent | 23876c085407866ca40e2248d9a6636d5cdff6da [diff] |
fix(Asset Repair): Set completion_date on changing repair_status to 'Completed'
diff --git a/erpnext/assets/doctype/asset_repair/asset_repair.js b/erpnext/assets/doctype/asset_repair/asset_repair.js index efa6a9d..ced3dad 100644 --- a/erpnext/assets/doctype/asset_repair/asset_repair.js +++ b/erpnext/assets/doctype/asset_repair/asset_repair.js
@@ -28,6 +28,10 @@ } }); } + + if (frm.doc.repair_status == "Completed") { + frm.set_value('completion_date', frappe.datetime.now_datetime()); + } } });