update tax year again

master
unknown 2022-01-15 21:21:26 -07:00
parent bb341a5659
commit d8f295f1ba
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ export class ContributorAllReportsComponent implements OnInit {
constructor(private printService: PrintService, private userService: UserService, private transactionService: TransactionService) { } constructor(private printService: PrintService, private userService: UserService, private transactionService: TransactionService) { }
ngOnInit() { ngOnInit() {
const query = forkJoin([this.userService.getAll(), this.transactionService.getByYear(2020), this.transactionService.getByYear(2019)]); const taxYear = 2021;
const query = forkJoin([this.userService.getAll(), this.transactionService.getByYear(taxYear), this.transactionService.getByYear(taxYear - 1)]);
query.subscribe(res => this.setup(res[0], res[1], res[2])); query.subscribe(res => this.setup(res[0], res[1], res[2]));