mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 18:54:55 +00:00
Codacy error fixes
This commit is contained in:
@@ -196,7 +196,7 @@ frappe.ui.form.on('Asset', {
|
||||
calculate_depreciation: function(frm) {
|
||||
frappe.db.get_value("Asset Settings", {'name':"Asset Settings"}, 'schedule_based_on_fiscal_year', (data) => {
|
||||
if (data.schedule_based_on_fiscal_year == 1) {
|
||||
frm.set_df_property("depreciation_method", "options", "\nStraight Line\nManual")
|
||||
frm.set_df_property("depreciation_method", "options", "\nStraight Line\nManual");
|
||||
frm.toggle_reqd("available_for_use_date", true);
|
||||
frm.toggle_display("frequency_of_depreciation", false);
|
||||
frappe.db.get_value("Fiscal Year", {'name': frappe.sys_defaults.fiscal_year}, "year_end_date", (data) => {
|
||||
|
||||
Reference in New Issue
Block a user