projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
10cddd9
)
fix bug affecting single_price calculation
author
mark
<mark>
Thu, 26 Aug 2010 21:10:25 +0000
(21:10 +0000)
committer
mark
<mark>
Thu, 26 Aug 2010 21:10:25 +0000
(21:10 +0000)
FS/FS/part_pkg/voip_cdr.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg/voip_cdr.pm
b/FS/FS/part_pkg/voip_cdr.pm
index
984a650
..
5fc1fb8
100644
(file)
--- a/
FS/FS/part_pkg/voip_cdr.pm
+++ b/
FS/FS/part_pkg/voip_cdr.pm
@@
-699,6
+699,8
@@
sub calc_usage {
$classnum = $rate_detail->classnum;
$charge = sprintf('%.2f', $charge);
$classnum = $rate_detail->classnum;
$charge = sprintf('%.2f', $charge);
+ warn "Incrementing \$charges by $charge. Now $charges\n" if $DEBUG;
+ $charges += $charge;
@call_details = (
$cdr->downstream_csv( 'format' => $output_format,
@call_details = (
$cdr->downstream_csv( 'format' => $output_format,
@@
-718,8
+720,6
@@
sub calc_usage {
if ( $charge > 0 ) {
#just use FS::cust_bill_pkg_detail objects?
if ( $charge > 0 ) {
#just use FS::cust_bill_pkg_detail objects?
- warn "Incrementing \$charges by $charge. Now $charges\n" if $DEBUG;
- $charges += $charge;
my $call_details;
my $phonenum = $cust_svc->svc_x->phonenum;
my $call_details;
my $phonenum = $cust_svc->svc_x->phonenum;