Get tax year from transaction date
parent
5a33068e2b
commit
d2a88e1cd0
|
|
@ -76,6 +76,7 @@ export class AddTransactionPageComponent implements OnInit {
|
||||||
contrib.transactions = [];
|
contrib.transactions = [];
|
||||||
this.contributions.push(contrib);
|
this.contributions.push(contrib);
|
||||||
}
|
}
|
||||||
|
res.transaction.taxYear = +res.transaction.date.split('-')[0];
|
||||||
contrib.transactions.push(res.transaction);
|
contrib.transactions.push(res.transaction);
|
||||||
if (res.saveAndAdd === true) {
|
if (res.saveAndAdd === true) {
|
||||||
this.addTransaction(contrib.contributorId);
|
this.addTransaction(contrib.contributorId);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue