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