[freeside-commits] branch FREESIDE_3_BRANCH updated. e3ceac324435da66323d6e58b46ed86cf2bf0b90
Jonathan Prykop
jonathan at 420.am
Mon Apr 25 15:04:31 PDT 2016
The branch, FREESIDE_3_BRANCH has been updated
via e3ceac324435da66323d6e58b46ed86cf2bf0b90 (commit)
from a541a59a156998b7d0c310fc74f7e528431a6716 (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 e3ceac324435da66323d6e58b46ed86cf2bf0b90
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