asterisk2billing.org
http://forum.asterisk2billing.org/

extracharge_fee not working in case of Progressive Billing
http://forum.asterisk2billing.org/viewtopic.php?f=16&t=4561
Page 1 of 1

Author:  james [ Wed Nov 19, 2008 11:37 am ]
Post subject:  extracharge_fee not working in case of Progressive Billing

Hi ,
i have tested that in case of Progressive billing Extracharge_DID difine in A2billing.conf file is not charge to customer.


If we don’t use progressive billing its work perfect.


please guide me if some one have slove the problem.


Best Regards

Author:  kalagera [ Mon Feb 14, 2011 4:19 pm ]
Post subject:  Re: extracharge_fee not working in case of Progressive Billing

i recently had the same problem. after looking into the code i found that in Class.RateEngine.php only rateinitial is being updated with the extra fee.
to fix this go to file common/lib/Class.RateEngine.php
after line 262 add the following:
$this->ratecard_obj[$i][18]+=$fee; //chargea
$this->ratecard_obj[$i][22]+=$fee; //chargeb
$this->ratecard_obj[$i][26]+=$fee; //chargec
the whole block will look like:
for ($i=0; $i<count($this->ratecard_obj); $i++)
{
$this->ratecard_obj[$i][9] +=$buyfee; //buy
$this->ratecard_obj[$i][12]+=$fee; //rateinitial
$this->ratecard_obj[$i][18]+=$fee; //chargea
$this->ratecard_obj[$i][22]+=$fee; //chargeb
$this->ratecard_obj[$i][26]+=$fee; //chargec
}

Author:  jroper [ Tue Feb 15, 2011 9:58 am ]
Post subject:  Re: extracharge_fee not working in case of Progressive Billing

Hi

fixed

https://github.com/Star2Billing/a2billi ... 9364d3af13

Joe

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/