Configuring the Rounding Precision for the Duration of the Proration Period
When charging or refunding a customer for an incomplete billing period, to calculate the respective prorated fees, CloudBlue Commerce rounds the duration of the proration period to its default precision of two decimal places after the dot.
To increase the calculation accuracy, you can increase the rounding precision in the range from 2 to 8 decimal places after the dot. To do so:
- Using SSH, log in to the Billing Application node as the root user.
-
Open the global configuration file for editing:
/usr/local/bm/etc/ssm.conf.d/global.conf
- In the environment section, add a new variable with the name DURATION_PRECISION and set its value to any number from 2 to 8.
-
Restart the Billing service using the following command:
/etc/init.d/pba restart
As a result, all new calculations in order details, deliver lines, and reseller transactions will be made with the updated precision.