mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-15 04:45:09 +00:00
style: removed comments
This commit is contained in:
@@ -53,7 +53,7 @@ frappe.ui.form.on('Employee Advance', {
|
||||
frm.add_custom_button(
|
||||
__("Expense Claim"),
|
||||
function() {
|
||||
frm.events.make_expense_claim(frm); //Change this
|
||||
frm.events.make_expense_claim(frm);
|
||||
},
|
||||
__('Create')
|
||||
);
|
||||
@@ -64,11 +64,11 @@ frappe.ui.form.on('Employee Advance', {
|
||||
|
||||
if (frm.doc.repay_unclaimed_amount_from_salary == 0 && frappe.model.can_create("Journal Entry")){
|
||||
frm.add_custom_button(__("Return"), function() {
|
||||
frm.trigger('make_return_entry'); //Change this
|
||||
frm.trigger('make_return_entry');
|
||||
}, __('Create'));
|
||||
}else if (frm.doc.repay_unclaimed_amount_from_salary == 1 && frappe.model.can_create("Additional Salary")){
|
||||
frm.add_custom_button(__("Deduction from salary"), function() {
|
||||
frm.events.make_deduction_via_additional_salary(frm) //Change this
|
||||
frm.events.make_deduction_via_additional_salary(frm);
|
||||
}, __('Create'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,7 +84,6 @@ frappe.ui.form.on("Salary Slip", {
|
||||
|
||||
set_dynamic_labels: function(frm) {
|
||||
var company_currency = frm.doc.company? erpnext.get_currency(frm.doc.company): frappe.defaults.get_default("currency");
|
||||
// frm.events.set_exchange_rate(frm, company_currency);
|
||||
if (frm.doc.currency && company_currency!=frm.doc.currency) {
|
||||
frm.events.hide_loan_section(frm);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user