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
Open the global.conf file on the PBA application server in editor:
vi /usr/local/bm/etc/ssm.conf.d/global.conf
Add to the [environment] section the string TIMEDIFF_ALGORITHM = %DESIRED_VALUE%. For example: TIMEDIFF_ALGORITHM = MONTHDIFF_ALG_30DAYS_BASE
Restart PBA:
/etc/init.d/pba restart
Windows
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
.Add to the [environment] section the string TIMEDIFF_ALGORITHM = %DESIRED_VALUE%.
Restart PBA:
net stop ssm net start pba
Supported values for the TIMEDIFF_ALGORITHM parameter are:
MONTHDIFF_ALG_30DAYS_BASE - the fixed 30-days number of days.
MONTHDIFF_ALG_ACTUALDAYS - the actual number of days in current month.
- MONTHDIFF_ALG_ORIGINAL - PBA original algorithm used by default.