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:

  1. Using SSH, log in to the Billing Application node as the root user.
  2. Open the global configuration file for editing:

    /usr/local/bm/etc/ssm.conf.d/global.conf
  3. In the environment section, add a new variable with the name DURATION_PRECISION and set its value to any number from 2 to 8.
  4. 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.