Fix typo allowPartialPeriodInterestCalcualtion for allowPartialPeriodInterestCalculation (#2993)

This commit is contained in:
tomasAscencio
2026-01-13 14:37:27 -06:00
committed by GitHub
parent 9ff58f7a6c
commit 56a965e87d
3 changed files with 3 additions and 3 deletions
@@ -205,7 +205,7 @@ export class EditLoansAccountComponent {
// In Fineract, the POST and PUT endpoints for /v1/loans have a typo in the field
// allowPartialPeriodInterestCalculation. Until that is fixed, we need to replace the field name in the payload.
loansAccountData.allowPartialPeriodInterestCalcualtion = loansAccountData.allowPartialPeriodInterestCalculation;
loansAccountData.allowPartialPeriodInterestCalculation = loansAccountData.allowPartialPeriodInterestCalculation;
delete loansAccountData.allowPartialPeriodInterestCalculation;
this.loansService.updateLoansAccount(this.loanId, loansAccountData).subscribe((response: any) => {
+1 -1
View File
@@ -759,7 +759,7 @@ export class LoansService {
// In Fineract, the POST and PUT endpoints for /v1/loans have a typo in the field
// allowPartialPeriodInterestCalculation. Until that is fixed, we need to replace the field name in the payload.
loansAccountData.allowPartialPeriodInterestCalcualtion = loansAccountData.allowPartialPeriodInterestCalculation;
loansAccountData.allowPartialPeriodInterestCalculation = loansAccountData.allowPartialPeriodInterestCalculation;
delete loansAccountData.allowPartialPeriodInterestCalculation;
return loansAccountData;
}
@@ -83,7 +83,7 @@ export class LoanProducts {
// In Fineract, the POST and PUT endpoints for /v1/loanproducts have a typo in the field
// allowPartialPeriodInterestCalculation. Until that is fixed, we need to replace the field name in the payload.
loanProduct.allowPartialPeriodInterestCalcualtion = loanProduct.allowPartialPeriodInterestCalculation;
loanProduct.allowPartialPeriodInterestCalculation = loanProduct.allowPartialPeriodInterestCalculation;
delete loanProduct.allowPartialPeriodInterestCalculation;
// Set Default values If they were not set