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