Frontend #143
@ -99,7 +99,7 @@ export class DashboardComponent implements OnInit {
|
|||||||
this.dataSourceTransactions = TRANSACTION_DATA;
|
this.dataSourceTransactions = TRANSACTION_DATA;
|
||||||
//TODO move to helper service
|
//TODO move to helper service
|
||||||
|
|
||||||
this.profit -= this.depotCost;
|
this.profit += this.depotCost;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ export class UserDialogComponent {
|
|||||||
this.data.isin,
|
this.data.isin,
|
||||||
this.data.time,
|
this.data.time,
|
||||||
+this.data.count,
|
+this.data.count,
|
||||||
+this.data.price.toFixed(2)
|
+this.data.price.toFixed(2) * -1
|
||||||
)
|
)
|
||||||
.subscribe((data) => {
|
.subscribe((data) => {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
Loading…
Reference in New Issue
Block a user