mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
style: Add missing semicolons
- & make formatting consistent
This commit is contained in:
@@ -334,7 +334,7 @@ erpnext.accounts.JournalEntry = frappe.ui.form.Controller.extend({
|
|||||||
+ ((value==null || value==="") ? "" : format_currency(Math.abs(value), currency))
|
+ ((value==null || value==="") ? "" : format_currency(Math.abs(value), currency))
|
||||||
+ " " + dr_or_cr
|
+ " " + dr_or_cr
|
||||||
+ "</div>";
|
+ "</div>";
|
||||||
}
|
};
|
||||||
this.frm.fields_dict.accounts.grid.update_docfield_property('balance', 'formatter', formatter);
|
this.frm.fields_dict.accounts.grid.update_docfield_property('balance', 'formatter', formatter);
|
||||||
this.frm.fields_dict.accounts.grid.update_docfield_property('party_balance', 'formatter', formatter);
|
this.frm.fields_dict.accounts.grid.update_docfield_property('party_balance', 'formatter', formatter);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ erpnext.accounts.PaymentReconciliationController = frappe.ui.form.Controller.ext
|
|||||||
if (invoices) {
|
if (invoices) {
|
||||||
this.frm.fields_dict.payment.grid.update_docfield_property(
|
this.frm.fields_dict.payment.grid.update_docfield_property(
|
||||||
'invoice_number', 'options', "\n" + invoices.join("\n")
|
'invoice_number', 'options', "\n" + invoices.join("\n")
|
||||||
)
|
);
|
||||||
|
|
||||||
$.each(me.frm.doc.payments || [], function(i, p) {
|
$.each(me.frm.doc.payments || [], function(i, p) {
|
||||||
if(!in_list(invoices, cstr(p.invoice_number))) p.invoice_number = null;
|
if(!in_list(invoices, cstr(p.invoice_number))) p.invoice_number = null;
|
||||||
|
|||||||
@@ -119,9 +119,11 @@ frappe.ui.form.on('Salary Structure', {
|
|||||||
let fields_read_only = ["is_tax_applicable", "is_flexible_benefit", "variable_based_on_taxable_salary"];
|
let fields_read_only = ["is_tax_applicable", "is_flexible_benefit", "variable_based_on_taxable_salary"];
|
||||||
fields_read_only.forEach(function(field) {
|
fields_read_only.forEach(function(field) {
|
||||||
frm.fields_dict.earnings.grid.update_docfield_property(
|
frm.fields_dict.earnings.grid.update_docfield_property(
|
||||||
field, 'read_only', 1);
|
field, 'read_only', 1
|
||||||
|
);
|
||||||
frm.fields_dict.deductions.grid.update_docfield_property(
|
frm.fields_dict.deductions.grid.update_docfield_property(
|
||||||
field, 'read_only', 1);
|
field, 'read_only', 1
|
||||||
|
);
|
||||||
});
|
});
|
||||||
frm.trigger('set_earning_deduction_component');
|
frm.trigger('set_earning_deduction_component');
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user