[freeside-commits] freeside/FS/FS/part_pkg voip_cdr.pm,1.13,1.14
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed May 14 11:07:26 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv21487/FS/FS/part_pkg
Modified Files:
voip_cdr.pm
Log Message:
correct tax selection and *actually* handle fee based taxes
Index: voip_cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_cdr.pm,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- voip_cdr.pm 24 Apr 2008 22:51:37 -0000 1.13
+++ voip_cdr.pm 14 May 2008 18:07:23 -0000 1.14
@@ -424,5 +424,12 @@
$self->option('recur_fee');
}
+# This equates svc_phone records; perhaps svc_phone should have a field
+# to indicate it represents a line
+sub calc_units {
+ my($self, $cust_pkg ) = @_;
+ scalar(grep { $_->part_svc->svcdb eq 'svc_phone' } $cust_pkg->cust_svc);
+}
+
1;
More information about the freeside-commits
mailing list