FIx: missed labels to Advanced Payment Allocation
This commit is contained in:
committed by
Jose Alberto Hernandez
parent
3b714fee0c
commit
e20a672518
+2
-2
@@ -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)"
|
||||
|
||||
+3
-1
@@ -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
|
||||
})
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user