mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix item cost precision
This commit is contained in:
parent
bea856201d
commit
810a50e3f5
@ -821,7 +821,7 @@ function ItemModel(data) {
|
|||||||
|
|
||||||
this.prettyCost = ko.computed({
|
this.prettyCost = ko.computed({
|
||||||
read: function () {
|
read: function () {
|
||||||
return this.cost() ? roundSignificant(this.cost()) : '';
|
return this.cost() ? roundSignificant(this.cost()).toFixed(2) : '';
|
||||||
},
|
},
|
||||||
write: function (value) {
|
write: function (value) {
|
||||||
this.cost(value);
|
this.cost(value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user