[Astpp-commit] SF.net SVN: astpp: [2154] trunk/astpp-common.pl
Brought to you by:
darrenkw
|
From: <dar...@us...> - 2007-11-04 22:32:25
|
Revision: 2154
http://astpp.svn.sourceforge.net/astpp/?rev=2154&view=rev
Author: darrenkw
Date: 2007-11-04 14:32:27 -0800 (Sun, 04 Nov 2007)
Log Message:
-----------
Updated the packages/counters code.
Modified Paths:
--------------
trunk/astpp-common.pl
Modified: trunk/astpp-common.pl
===================================================================
--- trunk/astpp-common.pl 2007-11-03 23:06:13 UTC (rev 2153)
+++ trunk/astpp-common.pl 2007-11-04 22:32:27 UTC (rev 2154)
@@ -3859,7 +3859,9 @@
print STDERR "----------------------\n";
}
elsif ( $cdrinfo->{accountcode} ) {
+ my $savedcdrinfo = $cdrinfo;
$status = &rating( $astpp_db, $cdr_db, $config, $cdrinfo, $carddata);
+ $cdrinfo = $savedcdrinfo;
if ( $status == 1 ) {
my $previous_account = $carddata->{number};
while ( $carddata->{reseller} ne "" ) {
@@ -3868,7 +3870,7 @@
print STDERR "Charge $uniqueid to $carddata->{reseller}" if $config->{debug} == 1;
$carddata = &get_account( $astpp_db, $carddata->{reseller} );
$status = &rating( $astpp_db, $cdr_db, $config, $cdrinfo, $carddata);
-
+ $cdrinfo = $savedcdrinfo;
my $tmp = "SELECT id FROM cdrs WHERE uniqueid = '" . $uniqueid
. "' AND cardnum = '" . $previous_account . "' LIMIT 1";
print STDERR "$tmp\n" if $config->{debug} == 1;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|