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