From 56a965e87d1a7f2cd3f0757b7ce1ca8a2f93eac9 Mon Sep 17 00:00:00 2001 From: tomasAscencio Date: Tue, 13 Jan 2026 14:37:27 -0600 Subject: [PATCH] Fix typo allowPartialPeriodInterestCalcualtion for allowPartialPeriodInterestCalculation (#2993) --- .../loans/edit-loans-account/edit-loans-account.component.ts | 2 +- src/app/loans/loans.service.ts | 2 +- src/app/products/loan-products/loan-products.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/loans/edit-loans-account/edit-loans-account.component.ts b/src/app/loans/edit-loans-account/edit-loans-account.component.ts index f1df822ac..21550def5 100644 --- a/src/app/loans/edit-loans-account/edit-loans-account.component.ts +++ b/src/app/loans/edit-loans-account/edit-loans-account.component.ts @@ -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) => { diff --git a/src/app/loans/loans.service.ts b/src/app/loans/loans.service.ts index 757d2c4ce..76d8f201b 100644 --- a/src/app/loans/loans.service.ts +++ b/src/app/loans/loans.service.ts @@ -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; } diff --git a/src/app/products/loan-products/loan-products.ts b/src/app/products/loan-products/loan-products.ts index f3f6aa845..6e2e78cc2 100644 --- a/src/app/products/loan-products/loan-products.ts +++ b/src/app/products/loan-products/loan-products.ts @@ -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