feat: edit, delete and enable/disable GL Account

Chart of Accounts:
  * Edit GL Account Component
  * Delete GL Account
  * Enable/Disable GL Account
This commit is contained in:
Abhay Chawla
2018-08-04 22:09:54 +05:30
parent 1707c2742c
commit 1390540474
9 changed files with 237 additions and 7 deletions
@@ -5,10 +5,10 @@
<button mat-raised-button color="primary" [routerLink]="['/accounting/chart-of-accounts/gl-accounts/view', glAccount.id, 'edit']">
<mat-icon>edit</mat-icon>&nbsp;&nbsp;Edit
</button>
<button mat-raised-button color="warn" *ngIf="!glAccount.disabled">
<button mat-raised-button color="warn" *ngIf="!glAccount.disabled" (click)="changeGlAccountState()">
<mat-icon>lock</mat-icon>&nbsp;&nbsp;Disable
</button>
<button mat-raised-button color="accent" *ngIf="glAccount.disabled">
<button mat-raised-button color="accent" *ngIf="glAccount.disabled" (click)="changeGlAccountState()">
<mat-icon>lock_open</mat-icon>&nbsp;&nbsp;Enable
</button>
<button mat-raised-button color="warn" (click)="deleteGlAccount()">