Configure the number of decimal places
By default, Job Ticketing calculates prices with two decimal places. Job Ticketing supports from 0 to 5 decimal places, and must align with what is configured in PaperCut MF. Please ensure both are changed.
- Stop the Job Ticketing service.
- Open the following file in a text editor:
- Update or add the following line:
decimal-places=<number of decimal places>
<number of decimal places>to the required precision.
- Save the file.
- Restart the Job Ticketing service.
- Switch to the PaperCut MF Admin interface.
- Go to the Options menu.
- Enable Change number of decimal places.
- Set both Decimal places … fields to the same value (min: 0, max: 5).
If you have any existing cost scripts, follow the steps below for each of them:
- In the Operator interface, in the bottom left corner of the screen, click Settings.
- Click the Cost scripts tab.
- Click the script you want to open. The Edit cost script page is displayed.
- Search in the script contents for
toFixed. It is a function used to convert a number to a string with the specified precision. If the cost scripts doesn’t have this function call, ignore that script.
- Make sure that this function, if present, is called with
decimalPlacesas an argument, like this:
.toFixed(decimalPlaces). In old versions of Job Ticketing it was called with a hard-coded value
2instead. If that’s the case, change the argument to be
- Save the script and repeat the process with the next script in your list.
Keep in mind that the orders created prior to this change in a corresponding cost script will retain their previous estimated costs. Estimations for new orders only will be calculated using the new version of a script.