freeside/FS/FS/part_pkg voip_sqlradacct.pm,1.12,1.13
ivan
ivan at pouncequick.420.am
Thu Mar 3 00:58:47 PST 2005
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory pouncequick:/tmp/cvs-serv17556
Modified Files:
voip_sqlradacct.pm
Log Message:
voip: rearrange and compact call details on invoices, so place names get cut off, not anything important
Index: voip_sqlradacct.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_sqlradacct.pm,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- voip_sqlradacct.pm 3 Mar 2005 08:52:55 -0000 1.12
+++ voip_sqlradacct.pm 3 Mar 2005 08:58:45 -0000 1.13
@@ -155,27 +155,19 @@
my $rate_region = $rate_prefix->rate_region;
warn " (rate region $rate_region)" if $DEBUG;
+ my @call_details = (
+ time2str("%Y %b %d - %r", $session->{'acctstarttime'}),
+ "+$countrycode $dest",
+ $rate_region->regionname,
+ $minutes.'m',
+ '$'.$charge,
+ );
+
warn " adding details on charge to invoice: ".
- join(' - ',
- time2str("%Y %b %d - %r", $session->{'acctstarttime'}),
- "+$countrycode $dest",
- $rate_region->regionname,
- $minutes.'m',
- '$'.$charge,
- )
+ join(' - ', @call_details )
if $DEBUG;
- push @$details,
- #[
- join(' - ',
- time2str("%Y %b %d - %r", $session->{'acctstarttime'}),
- "+$countrycode $dest",
- $rate_region->regionname,
- $minutes.'m',
- '$'.$charge,
- #]
- )
- ;
+ push @$details, join(' - ', @call_details); #\@call_details,
} # $session
More information about the freeside-commits
mailing list