Removed the void and reprints report and added it to the bill settlement report updated the import to add a new sql to be executed later to update the settlements and report permission names Export works on all reports
58 lines
2.6 KiB
HTML
58 lines
2.6 KiB
HTML
<mat-card>
|
|
<mat-card-title-group>
|
|
<mat-card-title>Tax Report</mat-card-title>
|
|
<button mat-button mat-icon-button (click)="exportCsv()">
|
|
<mat-icon>save_alt</mat-icon>
|
|
</button>
|
|
</mat-card-title-group>
|
|
<mat-card-content>
|
|
<form [formGroup]="form" fxLayout="column">
|
|
<div fxLayout="row" fxLayout.lt-md="column" fxLayoutGap="20px" fxLayoutGap.lt-md="0px"
|
|
fxLayoutAlign="space-around start">
|
|
<mat-form-field fxFlex="40">
|
|
<input matInput [matDatepicker]="startDate" (focus)="startDate.open()" placeholder="Start Date"
|
|
formControlName="startDate" autocomplete="off">
|
|
<mat-datepicker-toggle matSuffix [for]="startDate"></mat-datepicker-toggle>
|
|
<mat-datepicker #startDate></mat-datepicker>
|
|
</mat-form-field>
|
|
<mat-form-field fxFlex="40">
|
|
<input matInput [matDatepicker]="finishDate" (focus)="finishDate.open()" placeholder="Finish Date"
|
|
formControlName="finishDate" autocomplete="off">
|
|
<mat-datepicker-toggle matSuffix [for]="finishDate"></mat-datepicker-toggle>
|
|
<mat-datepicker #finishDate></mat-datepicker>
|
|
</mat-form-field>
|
|
<button fxFlex="20" mat-raised-button color="primary" (click)="show()">Show</button>
|
|
</div>
|
|
</form>
|
|
<mat-table #table [dataSource]="dataSource" aria-label="Elements">
|
|
|
|
<!-- Name Column -->
|
|
<ng-container matColumnDef="name">
|
|
<mat-header-cell *matHeaderCellDef>Name</mat-header-cell>
|
|
<mat-cell *matCellDef="let row">{{row.name}}</mat-cell>
|
|
</ng-container>
|
|
|
|
<!-- Tax Rate Column -->
|
|
<ng-container matColumnDef="taxRate">
|
|
<mat-header-cell *matHeaderCellDef class="right">Rate</mat-header-cell>
|
|
<mat-cell *matCellDef="let row" class="right">{{row.taxRate | percent:'1.2-2'}}</mat-cell>
|
|
</ng-container>
|
|
|
|
<!-- Sale Amount Column -->
|
|
<ng-container matColumnDef="saleAmount">
|
|
<mat-header-cell *matHeaderCellDef class="right">Sale</mat-header-cell>
|
|
<mat-cell *matCellDef="let row" class="right">{{row.saleAmount | currency:'INR'}}</mat-cell>
|
|
</ng-container>
|
|
|
|
<!-- Tax Amount Column -->
|
|
<ng-container matColumnDef="taxAmount">
|
|
<mat-header-cell *matHeaderCellDef class="right">Tax</mat-header-cell>
|
|
<mat-cell *matCellDef="let row" class="right">{{row.amount | currency:'INR'}}</mat-cell>
|
|
</ng-container>
|
|
|
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
|
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
|
</mat-table>
|
|
</mat-card-content>
|
|
</mat-card>
|