Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 3:20 am
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Delete TariffGroup
PostPosted: Sat Jun 10, 2006 8:23 am 
Offline

Joined: Wed Mar 15, 2006 7:39 am
Posts: 16
When I try to delete a tarriffgroup, I get the following error:

Database error: Invalid SQL: SELECT label, id FROM call_tariff
MySQL Error: 1146 (Table 'mya2billing.call_tariff' doesn't exist)

I checked in CC_var_tariffgroup.inc and located the bug in following code:

$DBHandle_max = DbConnect();
$resmax = $DBHandle_max -> query("SELECT * FROM cc_tariffplan");
$numrow = $DBHandle_max -> num_rows();
if ($numrow>0){
$FG_TABLE_EDITION[]=array ("TARIFFPLAN",
"cc_tariffgroup_plan:idtariffplan:cc_tariffplan LEFT JOIN cc_tariffgroup_plan ON cc_tariffplan.id=cc_tariffgroup_plan.idtariffplan:
DISTINCT cc_tariffplan.tariffname, cc_tariffplan.id:
cc_tariffgroup_plan.idtariffgroup = %id:
idtariffgroup:%2 - (%1)::::%1:id='%1'",
'$value',
"SELECT",
"",
"",
"",
"sql",
"call_tariff",
"id",
"", "", "%1 : (%2)");
$FG_TABLE_COMMENT[]="";
}

I don't quite understand what is the purpose of this code. I suppose it was suposed to delete the record from the cc_tariffgroup_plan table for the given tariffgroup, but I am not sure.

If anybody has a comment on this please post it (Areski?).


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 25, 2006 4:59 pm 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
this might be fixed in the latest version.
Rgds, Areski


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 9 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group