mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 20:49:19 +00:00
fix: Accumulated depreciation (#25748)
* fix: Accumulated depreciation * fix: Sider issues
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
frappe.ui.form.on('Asset Category', {
|
frappe.ui.form.on('Asset Category', {
|
||||||
onload: function(frm) {
|
onload: function(frm) {
|
||||||
frm.add_fetch('company_name', 'accumulated_depreciation_account', 'accumulated_depreciation_account');
|
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) {
|
frm.set_query('fixed_asset_account', 'accounts', function(doc, cdt, cdn) {
|
||||||
var d = locals[cdt][cdn];
|
var d = locals[cdt][cdn];
|
||||||
|
|||||||
Reference in New Issue
Block a user