From 8c5617e866b8ab75f8a8e7e46255e6b402aadc6e Mon Sep 17 00:00:00 2001 From: jannisvisser Date: Wed, 14 Apr 2021 13:55:07 +0200 Subject: [PATCH] payment changes > hotfix v1.2.2 AB#7107 AB#7108 AB#7115 --- CHANGELOG.md | 4 +++- .../src/app/program/make-payment/make-payment.component.ts | 3 +-- .../program-people-affected.component.ts | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db5e494047..994422f89c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,10 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 --- -## [Unreleased](https://github.com/global-121/121-platform/compare/v1.2.1...master) +## [Unreleased](https://github.com/global-121/121-platform/compare/v1.2.2...master) --- +## [1.2.2](https://github.com/global-121/121-platform/compare/v1.2.1...v1.2.2) - 2021-04-14 + ## [1.2.1](https://github.com/global-121/121-platform/compare/v1.2.0...v1.2.1) - 2021-04-13 ## [1.2.0](https://github.com/global-121/121-platform/compare/v1.1.0...v1.2.0) - 2021-04-13 diff --git a/interfaces/HO-Portal/src/app/program/make-payment/make-payment.component.ts b/interfaces/HO-Portal/src/app/program/make-payment/make-payment.component.ts index ac1dc4a406..4ce81bfcf1 100644 --- a/interfaces/HO-Portal/src/app/program/make-payment/make-payment.component.ts +++ b/interfaces/HO-Portal/src/app/program/make-payment/make-payment.component.ts @@ -59,8 +59,7 @@ export class MakePaymentComponent implements OnInit { private async getNextInstallmentId(): Promise { let previousId = 0; - - if (this.pastPayments && this.pastPayments.length > 1) { + if (this.pastPayments && this.pastPayments.length > 0) { previousId = this.pastPayments[this.pastPayments.length - 1].id; } diff --git a/interfaces/HO-Portal/src/app/program/program-people-affected/program-people-affected.component.ts b/interfaces/HO-Portal/src/app/program/program-people-affected/program-people-affected.component.ts index dddf473435..c984031da7 100644 --- a/interfaces/HO-Portal/src/app/program/program-people-affected/program-people-affected.component.ts +++ b/interfaces/HO-Portal/src/app/program/program-people-affected/program-people-affected.component.ts @@ -419,7 +419,7 @@ export class ProgramPeopleAffectedComponent implements OnInit { this.lastInstallment = ( await this.programsService.getPastInstallments(this.programId) ).length; - const firstInstallmentToShow = Math.max(this.lastInstallment - 2, 0); + const firstInstallmentToShow = 1; if (this.thisPhase === ProgramPhase.payment) { this.pastTransactions = await this.programsService.getTransactions(