[freeside-commits] branch FREESIDE_4_BRANCH updated. 5c756345550e03e47740545c46fb93a2aad1d631

Jonathan Prykop jonathan at 420.am
Mon Apr 25 14:59:36 PDT 2016


The branch, FREESIDE_4_BRANCH has been updated
       via  5c756345550e03e47740545c46fb93a2aad1d631 (commit)
      from  ee84e9c23bdd1de35b33590a05d933e49922c811 (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 5c756345550e03e47740545c46fb93a2aad1d631
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