Money: Currently set to 10 when using useCurrency()
Tax: Currently set to 2 when using Formatter.tax using toFixed()
Others: ??
mSupply uses a pref for some of this, though I'm not sure how much.
Should use some global variable to set this for.. categories? everything?
i.e. taxDecimalPlaces: 2, moneyDecimals: 10
I know that vaccines use a decimal for quantity in mSupply, but numberOfPacks is an int in the gql schema. I can't think of other decimals off the top of my head
useCurrency()
Formatter.tax
usingtoFixed()
mSupply uses a pref for some of this, though I'm not sure how much.
Should use some global variable to set this for.. categories? everything?
i.e.
taxDecimalPlaces: 2
,moneyDecimals: 10
I know that vaccines use a decimal for
quantity
in mSupply, butnumberOfPacks
is an int in the gql schema. I can't think of other decimals off the top of my head