[freeside-commits] freeside/FS/FS cust_bill.pm,1.324,1.325
Ivan,,,
ivan at wavetail.420.am
Wed Mar 9 12:54:12 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv18415
Modified Files:
cust_bill.pm
Log Message:
should fix usage showing up without omitting package details, RT#11905, RT#11561
Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.324
retrieving revision 1.325
diff -u -w -d -r1.324 -r1.325
--- cust_bill.pm 8 Mar 2011 01:46:50 -0000 1.324
+++ cust_bill.pm 9 Mar 2011 20:54:09 -0000 1.325
@@ -4578,11 +4578,17 @@
}
+ unless ( $is_summary ) {
warn "$me _items_cust_bill_pkg adding details\n"
if $DEBUG > 1;
- push @d, $cust_bill_pkg->details(%details_opt)
- unless $is_summary; # || ($type && $type eq 'R');
+ #instead of omitting details entirely in this case (unwanted side
+ # effects), just omit CDRs
+ $details_opt{'format_function'} = sub { () }
+ if $type && $type eq 'R';
+
+ push @d, $cust_bill_pkg->details(%details_opt);
+ }
warn "$me _items_cust_bill_pkg calculating amount\n"
if $DEBUG > 1;
More information about the freeside-commits
mailing list