changes
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user