This commit is contained in:
gsinghpal
2026-03-13 12:38:28 -04:00
parent db4b9aa278
commit fc3c966484
2975 changed files with 1614 additions and 498 deletions

View File

@@ -0,0 +1,37 @@
.account_report.depreciation_schedule {
table.striped {
> thead > tr:not(:first-child) {
> th:nth-child(2n+3) { background: inherit }
> th[data-expression_label='assets_date_from'],
> th[data-expression_label='assets_plus'],
> th[data-expression_label='assets_minus'],
> th[data-expression_label='assets_date_to'],
> th[data-expression_label='balance'] {
background: $o-gray-100
}
}
> tbody {
> tr:not(.line_level_0):not(.empty) {
> td:nth-child(2n+3) { background: inherit }
> td[data-expression_label='assets_date_from'],
> td[data-expression_label='assets_plus'],
> td[data-expression_label='assets_minus'],
> td[data-expression_label='assets_date_to'],
> td[data-expression_label='balance'] {
background: $o-gray-100
}
}
> tr.line_level_0
{
> td:nth-child(2n+3) { background: inherit }
> td[data-expression_label='assets_date_from'],
> td[data-expression_label='assets_plus'],
> td[data-expression_label='assets_minus'],
> td[data-expression_label='assets_date_to'],
> td[data-expression_label='balance'] {
background: $o-gray-300
}
}
}
}
}

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates>
<t t-name="fusion_accounting.DepreciationScheduleFilters" t-inherit="fusion_accounting.AccountReportFiltersCustomizable">
<xpath expr="//div[@id='filter_extra_options']" position="before">
<t t-call="fusion_accounting.DepreciationScheduleGroupBy"/>
</xpath>
</t>
</templates>

View File

@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates>
<t t-name="fusion_accounting.DepreciationScheduleGroupBy">
<Dropdown>
<button class="btn btn-secondary">
<i class="fa fa-list me-1"/>
<t t-if="controller.options.assets_grouping_field === 'account_id'">
Group by Account
</t>
<t t-elif="controller.options.assets_grouping_field === 'asset_group_id'">
Group by Asset Group
</t>
<t t-elif="controller.options.assets_grouping_field === 'none'">
No Grouping
</t>
</button>
<t t-set-slot="content">
<DropdownItem
class="{ 'selected': controller.options.assets_grouping_field === 'account_id' }"
onSelected="() => this.filterClicked({ optionKey: 'assets_grouping_field', optionValue: 'account_id', reload: true})"
>
Group By Account
</DropdownItem>
<DropdownItem
class="{ 'selected': controller.options.assets_grouping_field === 'asset_group_id' }"
onSelected="() => this.filterClicked({ optionKey: 'assets_grouping_field', optionValue: 'asset_group_id', reload: true})"
>
Group By Asset Group
</DropdownItem>
<DropdownItem
class="{ 'selected': controller.options.assets_grouping_field === 'none'}"
onSelected="() => this.filterClicked({ optionKey: 'assets_grouping_field', optionValue: 'none', reload: true})"
>
No Grouping
</DropdownItem>
</t>
</Dropdown>
</t>
</templates>