Update validateHandlingCost to use 2 decimal precision for parsing numbers.
This commit is contained in:
parent
7531efab71
commit
89a132dc4a
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ export default {
|
|||
this.handlingCostActive = value;
|
||||
},
|
||||
validateHandlingCost(event, type) {
|
||||
const value = event.target.value == null ? null : parseNumberFromString(event.target.value, 0);
|
||||
const value = event.target.value == null ? null : parseNumberFromString(event.target.value, 2);
|
||||
const validatedValue = value == null ? null : Math.max(0, value);
|
||||
const stringified = validatedValue === null ? '' : validatedValue.toFixed();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue