blob: f2c17769d1ee8b6669a836c35d029772bd63fe38 (
plain)
1
2
3
4
5
6
7
8
9
10
|
const sellingProductFormat = (value) => {
if (value > 1000) {
const formattedValue = (value / 1000).toFixed(0).replace('.', ',')
return formattedValue + 'rb+';
} else {
return value.toString()
}
}
export { sellingProductFormat }
|