X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg%2Fagent_cdr.pm;h=a638b5b5af80697c205d714996262c0b3f5c8a1b;hp=be0f987f9a459a2828e7afb1c8d345cf5fd05734;hb=674cb2d9d7105f4cc2871539b2e9f7088cdaa750;hpb=26a32660f45092621bf21b445692b3e1f6e820ad diff --git a/FS/FS/part_pkg/agent_cdr.pm b/FS/FS/part_pkg/agent_cdr.pm index be0f987f9..a638b5b5a 100644 --- a/FS/FS/part_pkg/agent_cdr.pm +++ b/FS/FS/part_pkg/agent_cdr.pm @@ -23,7 +23,7 @@ tie my %temporalities, 'Tie::IxHash', %info = ( 'name' => 'Wholesale CDR cost billing, for master customers of an agent.', - 'shortname' => 'Whilesale CDR cost billing for agent.', + 'shortname' => 'Wholesale CDR cost billing for agent', 'inherit_fields' => [ 'prorate_Mixin', 'global_Mixin' ], 'fields' => { #false laziness w/cdr_termination @@ -177,7 +177,11 @@ sub calc_recur { my $classnum = ''; #usage class? #option to turn off? or just use squelch_cdr for the customer probably - push @$details, [ 'C', $call_details, $cost, $classnum ]; + # XXX use detail_format for this at some point + push @$details, { 'format' => 'C', + 'detail' => $call_details, + 'amount' => $cost, + 'classnum' => $classnum }; #eofalse laziness w/cdr_termination @@ -189,7 +193,8 @@ sub calc_recur { #eo CDR calculations - $charges += ($cust_pkg->quantity || 1) * $self->calc_recur_Common(@_); + $charges += ($cust_pkg->quantity || 1) + * $self->calc_recur_Common($cust_pkg, $sdate, $details, $param); $charges; }