Fix decimal multiplication weirdness by rounding
There's probably a better way to go about handling this but for now this is good enough.
This commit is contained in:
parent
9a274591ac
commit
ccf1acd21e
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ export class AddEditTransactionComponent implements OnInit, OnChanges {
|
||||||
this.budgetId,
|
this.budgetId,
|
||||||
this.currentTransaction.title,
|
this.currentTransaction.title,
|
||||||
this.currentTransaction.description,
|
this.currentTransaction.description,
|
||||||
this.currentTransaction.amount * 100,
|
Math.round(this.currentTransaction.amount * 100),
|
||||||
this.currentTransaction.date,
|
this.currentTransaction.date,
|
||||||
this.currentTransaction.expense,
|
this.currentTransaction.expense,
|
||||||
this.currentTransaction.categoryId,
|
this.currentTransaction.categoryId,
|
||||||
|
@ -91,7 +91,7 @@ export class AddEditTransactionComponent implements OnInit, OnChanges {
|
||||||
{
|
{
|
||||||
title: this.currentTransaction.title,
|
title: this.currentTransaction.title,
|
||||||
description: this.currentTransaction.description,
|
description: this.currentTransaction.description,
|
||||||
amount: this.currentTransaction.amount * 100,
|
amount: Math.round(this.currentTransaction.amount * 100),
|
||||||
date: this.currentTransaction.date,
|
date: this.currentTransaction.date,
|
||||||
categoryId: this.currentTransaction.categoryId,
|
categoryId: this.currentTransaction.categoryId,
|
||||||
expense: this.currentTransaction.expense
|
expense: this.currentTransaction.expense
|
||||||
|
|
Loading…
Reference in a new issue