Add Buy down fee transaction to Loan
This commit is contained in:
@@ -77,6 +77,8 @@ export class LoanActionButtonResolver {
|
||||
return this.loansService.getLoanActionTemplate(loanId, 'capitalizedIncome');
|
||||
} else if (loanActionButton === 'Contract Termination') {
|
||||
return this.loansService.getLoanActionTemplate(loanId, 'contractTermination');
|
||||
} else if (loanActionButton === 'Buy Down Fee') {
|
||||
return this.loansService.getLoanActionTemplate(loanId, 'buyDownFee');
|
||||
} else {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<mifosx-make-repayment [dataObject]="actionButtonData" *ngIf="actions['Make Repayment']"></mifosx-make-repayment>
|
||||
<mifosx-make-repayment [dataObject]="actionButtonData" *ngIf="actions['Capitalized Income']"></mifosx-make-repayment>
|
||||
<mifosx-make-repayment [dataObject]="actionButtonData" *ngIf="actions['Goodwill Credit']"></mifosx-make-repayment>
|
||||
<mifosx-make-repayment [dataObject]="actionButtonData" *ngIf="actions['Buy Down Fee']"></mifosx-make-repayment>
|
||||
<mifosx-make-repayment
|
||||
[dataObject]="actionButtonData"
|
||||
*ngIf="actions['Interest Payment Waiver']"
|
||||
|
||||
@@ -53,6 +53,7 @@ export class LoanAccountActionsComponent {
|
||||
'Add Interest Pause': boolean;
|
||||
'Capitalized Income': boolean;
|
||||
'Contract Termination': boolean;
|
||||
'Buy Down Fee': boolean;
|
||||
} = {
|
||||
Close: false,
|
||||
'Undo Approval': false,
|
||||
@@ -90,7 +91,8 @@ export class LoanAccountActionsComponent {
|
||||
'Interest Payment Waiver': false,
|
||||
'Add Interest Pause': false,
|
||||
'Capitalized Income': false,
|
||||
'Contract Termination': false
|
||||
'Contract Termination': false,
|
||||
'Buy Down Fee': false
|
||||
};
|
||||
|
||||
actionButtonData: any;
|
||||
|
||||
+7
-1
@@ -127,7 +127,7 @@ export class MakeRepaymentComponent implements OnInit {
|
||||
}
|
||||
|
||||
showDetails(): boolean {
|
||||
return !this.isCapitalizedIncome();
|
||||
return !this.isCapitalizedIncome() && !this.isBuyDownFee();
|
||||
}
|
||||
|
||||
isCapitalizedIncome(): boolean {
|
||||
@@ -137,6 +137,12 @@ export class MakeRepaymentComponent implements OnInit {
|
||||
].includes(this.command);
|
||||
}
|
||||
|
||||
isBuyDownFee(): boolean {
|
||||
return [
|
||||
'buyDownFee'
|
||||
].includes(this.command);
|
||||
}
|
||||
|
||||
/** Submits the repayment form */
|
||||
submit() {
|
||||
const repaymentLoanFormData = this.repaymentLoanForm.value;
|
||||
|
||||
@@ -142,6 +142,11 @@ export class LoansViewComponent implements OnInit {
|
||||
taskPermissionName: 'DISBURSE_LOAN'
|
||||
});
|
||||
} else if (this.status === 'Active') {
|
||||
this.buttonConfig.addButton({
|
||||
name: 'Buy Down Fee',
|
||||
icon: 'plus',
|
||||
taskPermissionName: 'BUY_DOWN_FEE_LOAN'
|
||||
});
|
||||
if (this.loanDetailsData.enableIncomeCapitalization) {
|
||||
this.buttonConfig.addButton({
|
||||
name: 'Capitalized Income',
|
||||
|
||||
@@ -2507,6 +2507,7 @@
|
||||
"Block Deposit": "Blokový vklad",
|
||||
"Block Withdrawal": "Blokovat výběr",
|
||||
"Breadcrumbs": "Strouhanka",
|
||||
"Buy Down Fee": "Poplatek za odkup",
|
||||
"Calculate Interest": "Vypočítejte úrok",
|
||||
"Capitalized Income": "Kapitalizovaný příjem",
|
||||
"Capitalized Income Adjustment": "Úprava kapitalizovaného příjmu",
|
||||
|
||||
@@ -2507,6 +2507,7 @@
|
||||
"Block Deposit": "Blockeinzahlung",
|
||||
"Block Withdrawal": "Auszahlung blockieren",
|
||||
"Breadcrumbs": "Semmelbrösel",
|
||||
"Buy Down Fee": "Anzahlungsgebühr",
|
||||
"Calculate Interest": "Zinsen berechnen",
|
||||
"Capitalized Income": "Kapitalisiertes Einkommen",
|
||||
"Capitalized Income Adjustment": "Anpassung des kapitalisierten Einkommens",
|
||||
|
||||
@@ -2514,6 +2514,7 @@
|
||||
"Block Deposit": "Block Deposit",
|
||||
"Block Withdrawal": "Block Withdrawal",
|
||||
"Breadcrumbs": "Breadcrumbs",
|
||||
"Buy Down Fee": "Buy Down Fee",
|
||||
"Calculate Interest": "Calculate Interest",
|
||||
"Capitalized Income": "Capitalized Income",
|
||||
"Capitalized Income Adjustment": "Capitalized Income Adjustment",
|
||||
|
||||
@@ -2507,6 +2507,7 @@
|
||||
"Block Deposit": "Bloquear depósitos",
|
||||
"Block Withdrawal": "Bloquear retiros",
|
||||
"Breadcrumbs": "Migas de pan",
|
||||
"Buy Down Fee": "Comisión de compra inicial",
|
||||
"Calculate Interest": "Calcular interés",
|
||||
"Capitalized Income": "Ingreso capitalizado",
|
||||
"Capitalized Income Adjustment": "Ajuste de ingresos capitalizados",
|
||||
|
||||
@@ -2507,6 +2507,7 @@
|
||||
"Block Deposit": "Bloquear depósitos",
|
||||
"Block Withdrawal": "Bloquear retiros",
|
||||
"Breadcrumbs": "Migas de pan",
|
||||
"Buy Down Fee": "Comisión de compra inicial",
|
||||
"Calculate Interest": "Calcular interés",
|
||||
"Capitalized Income": "Ingreso capitalizado",
|
||||
"Capitalized Income Adjustment": "Ajuste de ingresos capitalizados",
|
||||
|
||||
@@ -2507,6 +2507,7 @@
|
||||
"Block Deposit": "Dépôt en bloc",
|
||||
"Block Withdrawal": "Bloquer le retrait",
|
||||
"Breadcrumbs": "Chapelure",
|
||||
"Buy Down Fee": "Frais d'achat initial",
|
||||
"Calculate Interest": "Calculer les intérêts",
|
||||
"Capitalized Income": "Revenu capitalisé",
|
||||
"Capitalized Income Adjustment": "Ajustement du revenu capitalisé",
|
||||
|
||||
@@ -2507,6 +2507,7 @@
|
||||
"Block Deposit": "Deposito in blocco",
|
||||
"Block Withdrawal": "Blocca il ritiro",
|
||||
"Breadcrumbs": "Briciole di pane",
|
||||
"Buy Down Fee": "Commissione di acquisto",
|
||||
"Calculate Interest": "Calcola gli interessi",
|
||||
"Capitalized Income": "Reddito capitalizzato",
|
||||
"Capitalized Income Adjustment": "Adeguamento del reddito capitalizzato",
|
||||
|
||||
@@ -2508,6 +2508,7 @@
|
||||
"Block Deposit": "블록입금",
|
||||
"Block Withdrawal": "출금 차단",
|
||||
"Breadcrumbs": "빵 부스러기",
|
||||
"Buy Down Fee": "구매 수수료",
|
||||
"Calculate Interest": "이자 계산",
|
||||
"Capitalized Income": "자본화 소득",
|
||||
"Capitalized Income Adjustment": "자본화 소득 조정",
|
||||
|
||||
@@ -2507,6 +2507,7 @@
|
||||
"Block Deposit": "Blokuoti indėlį",
|
||||
"Block Withdrawal": "Blokuoti išėmimą",
|
||||
"Breadcrumbs": "Duonos trupiniai",
|
||||
"Buy Down Fee": "Pirkimo mokestis",
|
||||
"Calculate Interest": "Apskaičiuokite palūkanas",
|
||||
"Capitalized Income": "Kapitalizuotos pajamos",
|
||||
"Capitalized Income Adjustment": "Kapitalizuotų pajamų koregavimas",
|
||||
|
||||
@@ -2507,6 +2507,7 @@
|
||||
"Block Deposit": "Bloķēt depozītu",
|
||||
"Block Withdrawal": "Bloķēt izņemšanu",
|
||||
"Breadcrumbs": "Maizes drupačas",
|
||||
"Buy Down Fee": "Nopirkt Down Fee",
|
||||
"Calculate Interest": "Aprēķināt procentus",
|
||||
"Capitalized Income": "Kapitalizētie ienākumi",
|
||||
"Capitalized Income Adjustment": "Kapitalizēto ienākumu korekcija",
|
||||
|
||||
@@ -2507,6 +2507,7 @@
|
||||
"Block Deposit": "ब्लक निक्षेप",
|
||||
"Block Withdrawal": "ब्लक निकासी",
|
||||
"Breadcrumbs": "ब्रेडक्रम्ब्स",
|
||||
"Buy Down Fee": "खरिद डाउन शुल्क",
|
||||
"Calculate Interest": "ब्याज गणना गर्नुहोस्",
|
||||
"Capitalized Income": "पुँजीगत आय",
|
||||
"Capitalized Income Adjustment": "पूंजीकृत आय समायोजन",
|
||||
|
||||
@@ -2507,6 +2507,7 @@
|
||||
"Block Deposit": "Bloquear Depósito",
|
||||
"Block Withdrawal": "Retirada de bloco",
|
||||
"Breadcrumbs": "Migalhas de pão",
|
||||
"Buy Down Fee": "Taxa de compra inicial",
|
||||
"Calculate Interest": "Calcular juros",
|
||||
"Capitalized Income": "Renda Capitalizada",
|
||||
"Capitalized Income Adjustment": "Ajuste de Renda Capitalizada",
|
||||
|
||||
@@ -2507,6 +2507,7 @@
|
||||
"Block Deposit": "Kuzuia Amana",
|
||||
"Block Withdrawal": "Zuia Uondoaji",
|
||||
"Breadcrumbs": "Makombo ya mkate",
|
||||
"Buy Down Fee": "Ada ya Kununua Chini",
|
||||
"Calculate Interest": "Hesabu Riba",
|
||||
"Capitalized Income": "Mapato ya Mtaji",
|
||||
"Capitalized Income Adjustment": "Marekebisho ya Mapato ya Mtaji",
|
||||
|
||||
Reference in New Issue
Block a user