Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 18, 2024 10:25 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Customers can't use Ratecard in A2customer interface
PostPosted: Wed Sep 20, 2006 5:44 pm 
Offline

Joined: Sat Apr 15, 2006 2:26 pm
Posts: 87
Location: Germany
http://forum.asterisk2billing.org/viewtopic.php?t=725
Is there still no solution for this bug?


Top
 Profile  
 
 Post subject: Re: Customers can't use Ratecard in A2customer interface
PostPosted: Fri Sep 22, 2006 5:41 am 
Offline

Joined: Sat Apr 15, 2006 2:26 pm
Posts: 87
Location: Germany
toor wrote:
http://forum.asterisk2billing.org/viewtopic.php?t=725
Is there still no solution for this bug?

Could someone help me please?
Customers can't use it to watch their rates!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 23, 2006 12:20 pm 
Offline

Joined: Tue Nov 21, 2006 2:45 pm
Posts: 25
I would also really like to see this working, has anyone out there managed it?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 23, 2006 7:06 pm 
Offline

Joined: Mon May 29, 2006 7:07 pm
Posts: 287
Location: Denver
It still doesn't work.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 29, 2006 5:13 pm 
Offline

Joined: Wed Nov 29, 2006 4:59 pm
Posts: 2
Here is my fix:
Code:
if (isset($posted) && strlen(trim($tariffplan)) > 0){
   $idtariff = explode('-:-',$tariffplan);
   $HD_Form->FG_TOP_FILTER_NAME = str_replace ("-:-","",$idtariff[1]);
        $HD_Form->FG_TOP_FILTER_VALUE = $idtariff[0];
     $_SESSION["mytariff_id"] = $idtariff[0];
    $HD_Form -> FG_TABLE_CLAUSE .= "cc_tariffplan.id = cc_tariffgroup_plan.idtariffplan AND cc_tariffgroup_plan.idtariffgroup = '".$_SESSION["tariff"]."' AND  cc_tariffgroup_plan.idtariffplan=cc_ratecard.idtariffplan   AND cc_ratecard.idtariffplan='".$HD_Form->FG_TOP_FILTER_VALUE."' AND cc_tariffgroup_plan.idtariffgroup = '".$_SESSION["tariff"]."'";
   $_SESSION['def_ratecard'] = $HD_Form -> FG_TABLE_CLAUSE;
}else{
$HD_Form -> FG_TOP_FILTER_NAME = 0;
$HD_Form -> FG_TABLE_CLAUSE = "cc_tariffplan.id = cc_tariffgroup_plan.idtariffplan AND cc_tariffgroup_plan.idtariffgroup = '".$_SESSION["tariff"]."' AND cc_tariffgroup_plan.idtariffplan=cc_ratecard.idtariffplan AND cc_ratecard.idtariffplan='".$_SESSION["mytariff_id"]."' AND cc_tariffgroup_plan.idtariffgroup = '".$_SESSION["tariff"]."'";
}


PS You should edit carduser/form_data/FG_var_ratecard.inc


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 30, 2006 11:52 am 
Offline

Joined: Sat Apr 15, 2006 2:26 pm
Posts: 87
Location: Germany
snake wrote:
Here is my fix:
...

Seems to be working now. Thank you!


Top
 Profile  
 
 Post subject: thnx a lot =)
PostPosted: Thu Nov 30, 2006 6:54 pm 
Offline

Joined: Sat Apr 29, 2006 1:21 pm
Posts: 17
thnx a lot =)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 16, 2007 10:52 pm 
Offline

Joined: Fri Mar 17, 2006 2:57 pm
Posts: 57
Hi,

Can somebody tell me which line I need to fix? It has the code but i am not sure which line I have to update.

:oops:


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 03, 2007 11:16 am 
Offline

Joined: Thu Mar 01, 2007 4:44 pm
Posts: 14
Just search for the whole block. If you have it on screen, just copy the code above and paste the whole block over the old one. Thats the easiest way to do it without straining your eyes... he he he


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group