[freeside-commits] freeside/FS/FS/part_pkg cdr_termination.pm, 1.3, 1.4

Ivan,,, ivan at wavetail.420.am
Tue Jul 21 11:44:59 PDT 2009


Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv17635/FS/FS/part_pkg

Modified Files:
	cdr_termination.pm 
Log Message:
sub-penny termination pricing too, RT#5495

Index: cdr_termination.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/cdr_termination.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- cdr_termination.pm	15 Jul 2009 23:06:03 -0000	1.3
+++ cdr_termination.pm	21 Jul 2009 18:44:57 -0000	1.4
@@ -164,7 +164,9 @@
 
     #add a cdr_termination record and the charges
 
-    my $term_price = sprintf('%.2f', $cdr->rated_price * $term_percent / 100 );
+    # XXX config?
+    #my $term_price = sprintf('%.2f', $cdr->rated_price * $term_percent / 100 );
+    my $term_price = sprintf('%.4f', $cdr->rated_price * $term_percent / 100 );
 
     my $cdr_termination = new FS::cdr_termination {
       'acctid'      => $cdr->acctid,



More information about the freeside-commits mailing list