Changed global Dinero rounding IO-469.
This commit is contained in:
@@ -140,8 +140,12 @@ export function BillEnterModalLinesComponent({
|
||||
...item,
|
||||
actual_cost: !!item.actual_cost
|
||||
? item.actual_cost
|
||||
: parseFloat(e.target.value) *
|
||||
(1 - discount),
|
||||
: Math.round(
|
||||
(parseFloat(e.target.value) *
|
||||
(1 - discount) +
|
||||
Number.EPSILON) *
|
||||
100
|
||||
) / 100,
|
||||
};
|
||||
}
|
||||
return item;
|
||||
|
||||
Reference in New Issue
Block a user