FIx: missed labels to Advanced Payment Allocation

This commit is contained in:
Jose Alberto Hernandez
2024-05-23 01:23:25 -06:00
committed by Jose Alberto Hernandez
parent 3b714fee0c
commit e20a672518
16 changed files with 164 additions and 6 deletions
+2 -2
View File
@@ -37,7 +37,7 @@
<mifosx-language-selector class="p-r-10 p-t-10"></mifosx-language-selector>
<mifosx-theme-toggle class="p-r-10 p-t-10"></mifosx-theme-toggle>
<div fxFlex></div>
<mifosx-server-selector class="p-l-10 p-t-10" *ngIf="environment.allowServerSwitch"></mifosx-server-selector>
<mifosx-server-selector class="p-l-10 p-t-10" *ngIf="!environment.production && environment.allowServerSwitch"></mifosx-server-selector>
</div>
<!-- Logo with Organization Name -->
@@ -46,7 +46,7 @@
</div>
<!-- Tenant Identifier Name -->
<div fxLayout="row" fxLayoutAlign="center center" fxFlex="1 0 auto">
<div fxLayout="row" fxLayoutAlign="center center" fxFlex="1 0 auto" *ngIf="!environment.production">
<mifosx-tenant-selector></mifosx-tenant-selector>
</div>
@@ -3,7 +3,7 @@
<mat-tab *ngFor="let advancedPaymentAllocation of advancedPaymentAllocations">
<ng-template mat-tab-label>
{{advancedPaymentAllocation.transaction.code}}
{{advancedPaymentAllocation.transaction.value | translateCatalog}}
</ng-template>
<mifosx-advance-payment-allocation-tab [advancedPaymentAllocation]="advancedPaymentAllocation"
(allocationChanged)="allocationChanged($event)"
@@ -13,7 +13,7 @@
<mat-tab *ngFor="let advancedCreditAllocation of advancedCreditAllocations">
<ng-template mat-tab-label>
{{advancedCreditAllocation.transaction.code}}
{{advancedCreditAllocation.transaction.value | translateCatalog}}
</ng-template>
<mifosx-advance-payment-allocation-tab [advancedCreditAllocation]="advancedCreditAllocation"
(allocationChanged)="allocationChanged($event)"
@@ -58,12 +58,14 @@ export class LoanProductPaymentStrategyStepComponent implements OnInit {
this.advancedPaymentAllocationTransactionTypes.forEach((option: PaymentAllocationTransactionType) => {
if (!this.advancedPaymentStrategy.isDefault(option) && transactionTypesCurrent.indexOf(option.code) < 0) {
option.credit = false;
option.value = this.translateService.instant('labels.catalogs.' + option.value);
transactionTypesOptions.push(option);
}
});
this.advancedCreditAllocationTransactionTypes.forEach((option: PaymentAllocationTransactionType) => {
if (transactionTypesCurrent.indexOf(option.code) < 0) {
option.credit = true;
option.value = this.translateService.instant('labels.catalogs.' + option.value);
transactionTypesOptions.push(option);
}
});
@@ -72,7 +74,7 @@ export class LoanProductPaymentStrategyStepComponent implements OnInit {
new SelectBase({
controlName: 'code',
label: this.translateService.instant('labels.inputs.Transaction Type'),
options: { label: 'code', value: 'code', data: transactionTypesOptions },
options: { label: 'value', value: 'code', data: transactionTypesOptions },
order: 1
})
];