[freeside-commits] branch FREESIDE_2_3_BRANCH updated. b3d471fc5a646dc0197dd177873899e5b240ea33
Mark Wells
mark at 420.am
Fri Jul 6 12:59:41 PDT 2012
The branch, FREESIDE_2_3_BRANCH has been updated
via b3d471fc5a646dc0197dd177873899e5b240ea33 (commit)
from 2eac549e2daf3114eed36fc6bc3c86c954c6bba1 (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 b3d471fc5a646dc0197dd177873899e5b240ea33
Author: Mark Wells <mark at freeside.biz>
Date: Fri Jul 6 12:59:28 2012 -0700
excel number format fix, #17971
diff --git a/httemplate/search/cust_bill_pkg_referral.html b/httemplate/search/cust_bill_pkg_referral.html
index f17cea3..1bb6b91 100644
--- a/httemplate/search/cust_bill_pkg_referral.html
+++ b/httemplate/search/cust_bill_pkg_referral.html
@@ -190,7 +190,7 @@ my @orwhere;
push @orwhere, "(cust_bill_pkg.setup > 0)" if $setup;
push @orwhere, "($recur_sql > 0)" if $recur;
push @orwhere, "($usage_sql > 0)" if $usage;
-push @where, join(' OR ', @orwhere);
+push @where, '('.join(' OR ', @orwhere).')' if @orwhere;
$join_cust = ' JOIN cust_bill USING ( invnum )
LEFT JOIN cust_main USING ( custnum )
diff --git a/httemplate/search/elements/search-xls.html b/httemplate/search/elements/search-xls.html
index 6a19cf2..a3a8226 100644
--- a/httemplate/search/elements/search-xls.html
+++ b/httemplate/search/elements/search-xls.html
@@ -49,7 +49,7 @@ my $writer = sub {
# Wrapper for $worksheet->write.
# Do any massaging of the value/format here.
my ($r, $c, $value, $format) = @_;
- if ( $value =~ /^\Q$money_char\E(\d+\.?\d*)$/ ) {
+ if ( $value =~ /^\Q$money_char\E(-?\d+\.?\d*)$/ ) {
# Currency: strip the symbol, clone the requested format,
# and format it for currency
$value = $1;
-----------------------------------------------------------------------
Summary of changes:
httemplate/search/cust_bill_pkg_referral.html | 2 +-
httemplate/search/elements/search-xls.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list