X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg%2Fglobal_Mixin.pm;h=e82602e1acfcb533533cdde3ab8c6fd2181faf23;hb=dbf521cf2f1f1a05f4722006f339b2595c8ee70f;hp=0281a51f81d59c60293bc5681e53009e1ead7b67;hpb=5c3409b2a987a9a6fc6ca77bcaceb4b7cefa03de;p=freeside.git diff --git a/FS/FS/part_pkg/global_Mixin.pm b/FS/FS/part_pkg/global_Mixin.pm index 0281a51f8..e82602e1a 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; }