[freeside-commits] branch master updated. 5dc6749d097b38cdbea09f9f38e48c1b33916020

Jonathan Prykop jonathan at 420.am
Mon Apr 25 14:57:33 PDT 2016


The branch, master has been updated
       via  5dc6749d097b38cdbea09f9f38e48c1b33916020 (commit)
      from  0ff3950a9293b9055363c327816276ff45268d82 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5dc6749d097b38cdbea09f9f38e48c1b33916020
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Mon Apr 25 16:57:30 2016 -0500

    RT#41866: Punctuation prevented package from billing [bug fix to previous]

diff --git a/FS/FS/part_pkg/global_Mixin.pm b/FS/FS/part_pkg/global_Mixin.pm
index 0281a51..e82602e 100644
--- a/FS/FS/part_pkg/global_Mixin.pm
+++ b/FS/FS/part_pkg/global_Mixin.pm
@@ -21,9 +21,9 @@ sub validate_moneyn {
     return '';
   } elsif ( $$valref =~ /^\s*(\d*)(\.\d{1})\s*$/ ) {
     #handle one decimal place without barfing out
-    $$valref = ( ($1||''). ($2||''). ($3.'0') ) || 0;
+    $$valref = ( ($1||''). ($2.'0') ) || 0;
   } elsif ( $$valref =~ /^\s*(\d*)(\.\d{2})?\s*$/ ) {
-    $$valref = ( ($1||''). ($2||''). ($3||'') ) || 0;
+    $$valref = ( ($1||''). ($2||'') ) || 0;
   } else {
     return "Illegal (money) $option: ". $$valref;
   }

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/part_pkg/global_Mixin.pm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list