Fix typo allowPartialPeriodInterestCalcualtion for allowPartialPeriodInterestCalculation (#2993)
This commit is contained in:
@@ -205,7 +205,7 @@ export class EditLoansAccountComponent {
|
|||||||
|
|
||||||
// In Fineract, the POST and PUT endpoints for /v1/loans have a typo in the field
|
// 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.
|
// 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;
|
delete loansAccountData.allowPartialPeriodInterestCalculation;
|
||||||
|
|
||||||
this.loansService.updateLoansAccount(this.loanId, loansAccountData).subscribe((response: any) => {
|
this.loansService.updateLoansAccount(this.loanId, loansAccountData).subscribe((response: any) => {
|
||||||
|
|||||||
@@ -759,7 +759,7 @@ export class LoansService {
|
|||||||
|
|
||||||
// In Fineract, the POST and PUT endpoints for /v1/loans have a typo in the field
|
// 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.
|
// 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;
|
delete loansAccountData.allowPartialPeriodInterestCalculation;
|
||||||
return loansAccountData;
|
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
|
// 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.
|
// 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;
|
delete loanProduct.allowPartialPeriodInterestCalculation;
|
||||||
|
|
||||||
// Set Default values If they were not set
|
// Set Default values If they were not set
|
||||||
|
|||||||
Reference in New Issue
Block a user