Chore: Renamed the Ledger Table to Account
Chore: Renamed the Ledger Model to Account Chore: Renamed LedgerType to AccountType Chore: Renamed all properties of Account table to lowercase with underscores Feature: Starred Accounts and their entries do not delete during a rebase. Info: Starred Vouchers still delete. They can be starred, but have no effect.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
.gold {
|
||||
color: gold;
|
||||
}
|
||||
|
||||
.pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
<mat-card fxFlex>
|
||||
<mat-card-title-group>
|
||||
<mat-card-title>Account</mat-card-title>
|
||||
<mat-icon matSuffix (click)="item.isStarred = !item.isStarred" class="pointer" [class.gold]="item.isStarred">
|
||||
{{ item.isStarred ? 'star' : 'star_border' }}
|
||||
</mat-icon>
|
||||
</mat-card-title-group>
|
||||
<mat-card-content>
|
||||
<form [formGroup]="form" fxLayout="column">
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
.gold {
|
||||
color: gold;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,13 @@
|
||||
<!-- Name Column -->
|
||||
<ng-container matColumnDef="name">
|
||||
<mat-header-cell *matHeaderCellDef mat-sort-header>Name</mat-header-cell>
|
||||
<mat-cell *matCellDef="let row"><a [routerLink]="['/Account', row.id]">{{row.name}}</a></mat-cell>
|
||||
<mat-cell *matCellDef="let row">
|
||||
<a [routerLink]="['/Account', row.id]">
|
||||
<mat-icon matSuffix *ngIf="row.isStarred" class="gold">star
|
||||
</mat-icon>
|
||||
{{row.name}}
|
||||
</a>
|
||||
</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
<!-- Type Column -->
|
||||
|
||||
@@ -9,6 +9,7 @@ export class Account {
|
||||
type: AccountType;
|
||||
isActive: boolean;
|
||||
isReconcilable: boolean;
|
||||
isStarred: boolean;
|
||||
isFixture: boolean;
|
||||
costCentre: CostCentre;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user