Symptoms

Starting from PBA version 5.5, a Provider can choose the algorithm to be used for calculating days in month for proration:

  • Days / number of days in initial month (PBA original algorithm used by default).

  • Days / actual number of days in current month.

  • Days / 30 (fixed number of days).

Resolution

Warning: When Provider changes algorithm, it affects all active subscriptions and switching may cause inconsistency. The reason is that existing Orders were calculated using the previous algorithm. Contact your account manager and support before switching the algorithm.

To change the algorithm of calculating the days follow the instructions below:

Linux

  1. Open the global.conf file on the PBA application server in editor:

    vi /usr/local/bm/etc/ssm.conf.d/global.conf
    
  2. Add to the [environment] section the string TIMEDIFF_ALGORITHM = %DESIRED_VALUE%. For example: TIMEDIFF_ALGORITHM = MONTHDIFF_ALG_30DAYS_BASE

  3. Restart PBA:

    /etc/init.d/pba restart
    

Windows

  1. Open the global.conf file on the PBA application server in editor, the default path is C:\Program Files\Parallels\PBA\etc\ssm.conf.d\.global.conf.

  2. Add to the [environment] section the string TIMEDIFF_ALGORITHM = %DESIRED_VALUE%.

  3. Restart PBA:

    net stop ssm
    net start pba
    

Supported values for the TIMEDIFF_ALGORITHM parameter are:

Internal content