feat(accounting): add periodic accruals component (#274)

Add periodic accruals component to execute periodic accrual accounting
till a specified date.
This commit is contained in:
Abhay Chawla
2018-08-06 01:45:16 +05:30
committed by GitHub
parent ca80e5eff4
commit 6cbc13abb1
8 changed files with 116 additions and 5 deletions
@@ -0,0 +1,30 @@
<div class="container">
<mat-card>
<form [formGroup]="periodicAccrualsForm" (ngSubmit)="submit()">
<mat-card-content>
<div fxLayout="row">
<mat-form-field fxFlex>
<input matInput [min]="minDate" [max]="maxDate" [matDatepicker]="tillDatePicker" placeholder="Accrue Till Date" required formControlName="tillDate">
<mat-datepicker-toggle matSuffix [for]="tillDatePicker"></mat-datepicker-toggle>
<mat-datepicker #tillDatePicker></mat-datepicker>
</mat-form-field>
</div>
</mat-card-content>
<mat-card-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="5px">
<button type="button" mat-raised-button [routerLink]="['/accounting']">Cancel</button>
<button mat-raised-button color="primary"><mat-icon>play_arrow</mat-icon>&nbsp;&nbsp;Run Periodic Accruals</button>
</mat-card-actions>
</form>
</mat-card>
</div>