Fix in products view routes (#1643)

Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
José Alberto Hernández
2023-01-13 12:09:06 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent f330e91aa4
commit a56347d400
236 changed files with 944 additions and 940 deletions
@@ -15,7 +15,7 @@
Provisioning Criteria is <strong>required</strong>
</mat-error>
</mat-form-field>
<mat-form-field fxFlex>
<mat-label>Selected Products</mat-label>
<mat-select formControlName="loanProducts" multiple>
@@ -41,7 +41,7 @@
<th mat-header-cell *matHeaderCellDef> Category </th>
<td mat-cell *matCellDef="let definition"> {{ definition.categoryName }} </td>
</ng-container>
<ng-container matColumnDef="minAge">
<th mat-header-cell *matHeaderCellDef> Min Age </th>
<td mat-cell *matCellDef="let definition"> {{ definition.minAge || '0' }} </td>
@@ -51,7 +51,7 @@
<th mat-header-cell *matHeaderCellDef> Max Age </th>
<td mat-cell *matCellDef="let definition"> {{ definition.maxAge || '0' }} </td>
</ng-container>
<ng-container matColumnDef="percentage">
<th mat-header-cell *matHeaderCellDef> Percentage (%)</th>
<td mat-cell *matCellDef="let definition"> {{ definition.provisioningPercentage || '0' }} </td>
@@ -61,7 +61,7 @@
<th mat-header-cell *matHeaderCellDef> Liability Account </th>
<td mat-cell *matCellDef="let definition"> {{ (definition.liabilityAccount | find:loanProvisioningCriteriaTemplate.glAccounts:'id':'name') || '-' }} </td>
</ng-container>
<ng-container matColumnDef="expenseAccount">
<th mat-header-cell *matHeaderCellDef> Expense Account </th>
<td mat-cell *matCellDef="let definition"> {{ (definition.expenseAccount | find:loanProvisioningCriteriaTemplate.glAccounts:'id':'name') || '-' }} </td>
@@ -71,18 +71,18 @@
<th mat-header-cell *matHeaderCellDef> Actions </th>
<td mat-cell *matCellDef="let definition">
<button mat-button color="primary" (click)="editDefinition(definition)">
<fa-icon icon="edit"></fa-icon>&nbsp;&nbsp;
<fa-icon icon="edit" class="m-r-10"></fa-icon>
Edit
</button>
</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>
</div>
</div>
<div class="m-t-20" fxLayout="row" fxLayoutAlign="center" fxLayoutGap="20px">
<button type="button" mat-raised-button [routerLink]="['../']">Cancel</button>
@@ -15,7 +15,7 @@
Provisioning Criteria is <strong>required</strong>
</mat-error>
</mat-form-field>
<mat-form-field fxFlex>
<mat-label>Selected Products</mat-label>
<mat-select formControlName="loanProducts" [compareWith]="compareOptions" multiple>
@@ -41,7 +41,7 @@
<th mat-header-cell *matHeaderCellDef> Category </th>
<td mat-cell *matCellDef="let definition"> {{ definition.categoryName }} </td>
</ng-container>
<ng-container matColumnDef="minAge">
<th mat-header-cell *matHeaderCellDef> Min Age </th>
<td mat-cell *matCellDef="let definition"> {{ definition.minAge || '0' }} </td>
@@ -51,7 +51,7 @@
<th mat-header-cell *matHeaderCellDef> Max Age </th>
<td mat-cell *matCellDef="let definition"> {{ definition.maxAge || '0' }} </td>
</ng-container>
<ng-container matColumnDef="percentage">
<th mat-header-cell *matHeaderCellDef> Percentage (%)</th>
<td mat-cell *matCellDef="let definition"> {{ definition.provisioningPercentage || '0' }} </td>
@@ -61,7 +61,7 @@
<th mat-header-cell *matHeaderCellDef> Liability Account </th>
<td mat-cell *matCellDef="let definition"> {{ (definition.liabilityAccount | find:loanProvisioningCriteriaAndTemplate.glAccounts:'id':'name') || '-' }} </td>
</ng-container>
<ng-container matColumnDef="expenseAccount">
<th mat-header-cell *matHeaderCellDef> Expense Account </th>
<td mat-cell *matCellDef="let definition"> {{ (definition.expenseAccount | find:loanProvisioningCriteriaAndTemplate.glAccounts:'id':'name') || '-' }} </td>
@@ -71,18 +71,18 @@
<th mat-header-cell *matHeaderCellDef> Actions </th>
<td mat-cell *matCellDef="let definition">
<button mat-button color="primary" (click)="editDefinition(definition)">
<fa-icon icon="edit"></fa-icon>&nbsp;&nbsp;
<fa-icon icon="edit" class="m-r-10"></fa-icon>
Edit
</button>
</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>
</div>
</div>
<div class="m-t-20" fxLayout="row" fxLayoutAlign="center" fxLayoutGap="20px">
<button type="button" mat-raised-button [routerLink]="['../']">Cancel</button>
@@ -1,6 +1,6 @@
<div class="container m-b-20" fxLayout="row" fxLayoutAlign="end" fxLayoutGap="20px">
<button mat-raised-button color="primary" [routerLink]="['create']" *mifosxHasPermission="'CREATE_PROVISIONING_CRITERIA'">
<fa-icon icon="plus"></fa-icon>&nbsp;&nbsp;
<fa-icon icon="plus" class="m-r-10"></fa-icon>
Create Provisioning Criteria
</button>
</div>
@@ -1,10 +1,10 @@
<div fxLayout="row" fxLayoutAlign="end" fxLayoutGap="2%" fxLayout.lt-md="column" class="container m-b-20">
<button mat-raised-button color="primary" [routerLink]="['edit']" *mifosxHasPermission="'UPDATE_CRITERIA'">
<fa-icon icon="edit"></fa-icon>&nbsp;&nbsp;
<fa-icon icon="edit" class="m-r-10"></fa-icon>
Edit
</button>
<button mat-raised-button color="warn" (click)="deleteCriteria()" *mifosxHasPermission="'DELETE_CRITERIA'">
<fa-icon icon="trash"></fa-icon>&nbsp;&nbsp;
<fa-icon icon="trash" class="m-r-10"></fa-icon>
Delete
</button>
</div>
@@ -23,7 +23,7 @@
<div fxFlexFill class="loanProduct">
<span fxFlex="40%">Loan Product:</span>
<span fxFlex="60%">{{ loanProducts }}</span>
</div>
</div>
</div>
@@ -35,12 +35,12 @@
<th mat-header-cell *matHeaderCellDef> Category </th>
<td mat-cell *matCellDef="let provisioningData"> {{provisioningData.categoryName}} </td>
</ng-container>
<ng-container matColumnDef="minAge">
<th mat-header-cell *matHeaderCellDef> Min Age </th>
<td mat-cell *matCellDef="let provisioningData"> {{provisioningData.minAge}} </td>
</ng-container>
<ng-container matColumnDef="maxAge">
<th mat-header-cell *matHeaderCellDef> Max Age </th>
<td mat-cell *matCellDef="let provisioningData"> {{provisioningData.maxAge}} </td>
@@ -60,7 +60,7 @@
<th mat-header-cell *matHeaderCellDef> Expense Account </th>
<td mat-cell *matCellDef="let provisioningData"> {{provisioningData.expenseName}} </td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>