update tax year again
parent
bb341a5659
commit
d8f295f1ba
|
|
@ -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]));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue