show rounded decimals for default values; handle zero as normal input
This commit is contained in:
@@ -292,12 +292,12 @@ class SingleIncidentsTable extends Component {
|
||||
totalFee = changedFee;
|
||||
priceFontColor = 'red';
|
||||
}else{
|
||||
totalFee = (props.row['_original'].incidentPrice || props.value) || 0;
|
||||
totalFee = parseFloat((props.row['_original'].incidentPrice || props.value) || 0).toFixed(2);
|
||||
}
|
||||
const totalFeeFormatted = parseFloat(totalFee).toFixed(2);
|
||||
// const totalFeeFormatted = parseFloat(totalFee).toFixed(2);
|
||||
priceAsNumber = totalFee;
|
||||
priceInputID = `${props.row['_original'].incidentType || ''}-${props.row['_original'].incidentId || ''}`;
|
||||
cellValue = `$ ${totalFeeFormatted}`;
|
||||
// cellValue = `$ ${totalFeeFormatted}`;
|
||||
columnContentsAlignment = columnAlignments.right;
|
||||
break;
|
||||
case 'oldReservation':
|
||||
|
||||
Reference in New Issue
Block a user