How to configure algorithm of calculating days in month for proration?
Original Publishing Date:
2020-01-23
Symptoms
Starting from PBA version 5.5, a Provider can choose the algorithm to be used for calculating days in month for proration:
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:
Internal content