Skip to content

Commit 6ebe80f

Browse files
committed
Fix bug with invoice resident selection
1 parent 4bf240b commit 6ebe80f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎website/ngApp/common/mailing/mailing-invoice-ctrl.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ var Ally;
466466
}
467467
autoUnselectPaidOwners(shouldUseNextPeriod) {
468468
this.isLoading = true;
469-
const currentPeriod = shouldUseNextPeriod ? MailingInvoiceController.getCurrentPayPeriod(this.siteInfo.privateSiteInfo.assessmentFrequency) : MailingInvoiceController.getNextPayPeriod(this.siteInfo.privateSiteInfo.assessmentFrequency);
469+
const currentPeriod = shouldUseNextPeriod ? MailingInvoiceController.getNextPayPeriod(this.siteInfo.privateSiteInfo.assessmentFrequency) : MailingInvoiceController.getCurrentPayPeriod(this.siteInfo.privateSiteInfo.assessmentFrequency);
470470
const getUri = `/api/PaymentHistory/RecentPayPeriod/${currentPeriod.year}/${currentPeriod.period1Based}`;
471471
this.$http.get(getUri).then((response) => {
472472
this.isLoading = false;

‎website/ngApp/common/mailing/mailing-invoice-ctrl.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ namespace Ally
716716
{
717717
this.isLoading = true;
718718

719-
const currentPeriod = shouldUseNextPeriod ? MailingInvoiceController.getCurrentPayPeriod( this.siteInfo.privateSiteInfo.assessmentFrequency ) : MailingInvoiceController.getNextPayPeriod( this.siteInfo.privateSiteInfo.assessmentFrequency );
719+
const currentPeriod = shouldUseNextPeriod ? MailingInvoiceController.getNextPayPeriod( this.siteInfo.privateSiteInfo.assessmentFrequency ) : MailingInvoiceController.getCurrentPayPeriod( this.siteInfo.privateSiteInfo.assessmentFrequency );
720720

721721
const getUri = `/api/PaymentHistory/RecentPayPeriod/${currentPeriod.year}/${currentPeriod.period1Based}`;
722722

0 commit comments

Comments
 (0)