fix: Accumulated depreciation (#25748)

* fix: Accumulated depreciation

* fix: Sider issues
This commit is contained in:
anushka19
2021-05-18 22:21:42 +05:30
committed by GitHub
parent 8d7d4b0ba7
commit 90f7ec840c

View File

@@ -4,7 +4,7 @@
frappe.ui.form.on('Asset Category', {
onload: function(frm) {
frm.add_fetch('company_name', 'accumulated_depreciation_account', 'accumulated_depreciation_account');
frm.add_fetch('company_name', 'depreciation_expense_account', 'accumulated_depreciation_account');
frm.add_fetch('company_name', 'depreciation_expense_account', 'depreciation_expense_account');
frm.set_query('fixed_asset_account', 'accounts', function(doc, cdt, cdn) {
var d = locals[cdt][cdn];