mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-14 02:31:21 +00:00
fix: Remove trailing whitespace and add semicolon
This commit is contained in:
@@ -46,10 +46,10 @@ frappe.ui.form.on('Employee Advance', {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (frm.doc.docstatus === 1
|
if (frm.doc.docstatus === 1
|
||||||
&& (flt(frm.doc.claimed_amount) < flt(frm.doc.paid_amount))
|
&& (flt(frm.doc.claimed_amount) < flt(frm.doc.paid_amount))
|
||||||
&& frappe.model.can_create("Journal Entry")) {
|
&& frappe.model.can_create("Journal Entry")) {
|
||||||
|
|
||||||
frm.add_custom_button(__("Return"), function() {
|
frm.add_custom_button(__("Return"), function() {
|
||||||
frm.trigger('make_return_entry');
|
frm.trigger('make_return_entry');
|
||||||
}, __('Create'));
|
}, __('Create'));
|
||||||
@@ -107,7 +107,7 @@ frappe.ui.form.on('Employee Advance', {
|
|||||||
const doclist = frappe.model.sync(r.message);
|
const doclist = frappe.model.sync(r.message);
|
||||||
frappe.set_route('Form', doclist[0].doctype, doclist[0].name);
|
frappe.set_route('Form', doclist[0].doctype, doclist[0].name);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
employee: function (frm) {
|
employee: function (frm) {
|
||||||
|
|||||||
Reference in New Issue
Block a user