[freeside-commits] branch FREESIDE_4_BRANCH updated. 7ac1591f6168897f1957cdeb665332a651310267
Ivan
ivan at 420.am
Sat Apr 2 10:32:45 PDT 2016
The branch, FREESIDE_4_BRANCH has been updated
via 7ac1591f6168897f1957cdeb665332a651310267 (commit)
from 0463b26ef121d37450e716dfb766bff1ec5ec68a (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 7ac1591f6168897f1957cdeb665332a651310267
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sat Apr 2 10:32:44 2016 -0700
round unitsetup and unitrecur rather than error out about them, RT#41570
diff --git a/FS/FS/cust_main/Billing.pm b/FS/FS/cust_main/Billing.pm
index 1157ba9..a18873f 100644
--- a/FS/FS/cust_main/Billing.pm
+++ b/FS/FS/cust_main/Billing.pm
@@ -1305,11 +1305,11 @@ sub _make_lines {
my $cust_bill_pkg = new FS::cust_bill_pkg {
'pkgnum' => $cust_pkg->pkgnum,
'setup' => $setup,
- 'unitsetup' => $unitsetup,
+ 'unitsetup' => sprintf('%.2f', $unitsetup),
'setup_billed_currency' => $setup_billed_currency,
'setup_billed_amount' => $setup_billed_amount,
'recur' => $recur,
- 'unitrecur' => $unitrecur,
+ 'unitrecur' => sprintf('%.2f', $unitrecur),
'recur_billed_currency' => $recur_billed_currency,
'recur_billed_amount' => $recur_billed_amount,
'quantity' => $cust_pkg->quantity,
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_main/Billing.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list