diff --git a/erpnext/accounts/doctype/bank_guarantee/bank_guarantee.js b/erpnext/accounts/doctype/bank_guarantee/bank_guarantee.js index 77277aac18..10fbf34ead 100644 --- a/erpnext/accounts/doctype/bank_guarantee/bank_guarantee.js +++ b/erpnext/accounts/doctype/bank_guarantee/bank_guarantee.js @@ -27,19 +27,4 @@ frappe.ui.form.on('Bank Guarantee', { end_date = frappe.datetime.add_days(cur_frm.doc.start_date, cur_frm.doc.validity - 1); cur_frm.set_value("end_date", end_date); } -}); - -// $.extend(cur_frm.cscript, { -// start_date: function(doc, dt, dn) { -// var me = this; -// end_date = -// frappe.datetime.add_days(this.frm.doc.start_date, this.frm.doc.validity - 1); -// this.frm.set_value("end_date", end_date); -// }, -// validity: function(doc, dt, dn) { -// var me = this; -// end_date = -// frappe.datetime.add_days(this.frm.doc.start_date, this.frm.doc.validity - 1); -// this.frm.set_value("end_date", end_date); -// } -// }); \ No newline at end of file +}); \ No newline at end of file