⚠️ This article is for advanced users only
Often, when calculating amounts for visits you'll find that your hourly rates do not divide nicely into a round number. When billing for actual times in particular, you're likely to run into this.
By default, CareLineLive will round any amounts calculated for visits to 2 decimal places. This is the simplest to understand, however there may be circumstances where you need to change this behaviour.
Service contracts have an advanced option that lets you adjust how many decimal places are used.
Unless you're sure that you need to increase the number of decimal places, we'd recommend leaving it set to the default (2).
Scenario
Consider you have an hourly rate for billing at £22.13; you may have been given this by a local authority, or it may be part of your standard rate set.
For a 20 minute visit, trying to divide £22.13 by 1/3 will leave you with £7.375929. With the default setting of 2 decimal places, this will be rounded to £7.38.
Now consider that you have 20 of these visits within a month.
The table below shows how rounding precision can affect a 20 minute visit charged at £22.13 per hour.
Decimal places | Visit amount | # of visits | Total |
2 | £7.38 | 20 | £147.6 |
3 | £7.376 | 20 | £147.52 |
4 | £7.3759 | 20 | £147.518 |
5 | £7.37593 | 20 | £147.5186 |
6 | £7.375929 | 20 | £147.51858 |
As the table illustrates, having less decimal places means you end up with a less accurate total amount for the month.
⚠️ Amounts are always rounded to 2 decimal places in the final invoice total.
Changing the number of decimal places
It's not possible to change the number of decimal places globally, it must be configured for each Service Contract Type. This allows you to have different behaviours for different clients.
The option is part of the option sets for a service contract type, meaning you can change the behaviour at a point in time if you wish.
Open the Service Contract Type
Scroll down to the Billing section, and expand the Advanced options section
Change the Decimal places option under the Invoice rounding precision heading
Click Save
ℹ️ As with other contract options, changes will not be applied retrospectively. You'll need to re-calculate any invoices that you wish to apply the change to.
ℹ️ The decimal places will not be shown in the management portal interface, however will have an effect when the total for an invoice is calculated.