[freeside-commits] freeside/FS/FS/part_pkg voip_cdr.pm,1.22,1.23
Jeff Finucane,420,,
jeff at wavetail.420.am
Thu Aug 28 00:38:41 PDT 2008
- Previous message: [freeside-commits] freeside/httemplate/elements select-taxoverride.html, NONE, 1.1 tr-select-taxoverride.html, NONE, 1.1 select-taxproduct.html, 1.4, 1.5 tr-select-taxproduct.html, 1.1, 1.2
- Next message: [freeside-commits] freeside/FS/FS Schema.pm, 1.101, 1.102 cust_bill_pkg.pm, 1.22, 1.23 cust_main.pm, 1.361, 1.362 part_pkg.pm, 1.75, 1.76
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv24869/FS/FS/part_pkg
Modified Files:
voip_cdr.pm
Log Message:
multiple usage classes checkpoint
Index: voip_cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_cdr.pm,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- voip_cdr.pm 8 Aug 2008 18:13:05 -0000 1.22
+++ voip_cdr.pm 28 Aug 2008 07:38:39 -0000 1.23
@@ -187,6 +187,7 @@
my( $rate_region, $regionnum );
my $pretty_destnum;
my $charge = '';
+ my $classnum = '';
my @call_details = ();
if ( $self->option('rating_method') eq 'prefix'
|| ! $self->option('rating_method')
@@ -387,15 +388,18 @@
$rate_region->regionname,
);
+ $classnum = $rate_detail->classnum;
+
}
if ( $charge > 0 ) {
+ #just use FS::cust_bill_pkg_detail objects?
my $call_details;
if ( $self->option('rating_method') eq 'upstream_simple' ) {
- $call_details = [ 'C', $call_details[0] ];
+ $call_details = [ 'C', $call_details[0], $charge, $classnum ];
}else{
$csv->combine(@call_details);
- $call_details = [ 'C', $csv->string ];
+ $call_details = [ 'C', $csv->string, $charge, $classnum ];
}
warn " adding details on charge to invoice: [ ".
join(', ', @{$call_details} ). " ]"
- Previous message: [freeside-commits] freeside/httemplate/elements select-taxoverride.html, NONE, 1.1 tr-select-taxoverride.html, NONE, 1.1 select-taxproduct.html, 1.4, 1.5 tr-select-taxproduct.html, 1.1, 1.2
- Next message: [freeside-commits] freeside/FS/FS Schema.pm, 1.101, 1.102 cust_bill_pkg.pm, 1.22, 1.23 cust_main.pm, 1.361, 1.362 part_pkg.pm, 1.75, 1.76
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list