[freeside-commits] branch master updated. 0d982ac8e27c8235cbc38e87087ae7f50c10c6a5
Ivan
ivan at 420.am
Sat Apr 2 10:32:44 PDT 2016
The branch, master has been updated
via 0d982ac8e27c8235cbc38e87087ae7f50c10c6a5 (commit)
from 779cc1bc17634087c10030efb14b2bdd68ec03b3 (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 0d982ac8e27c8235cbc38e87087ae7f50c10c6a5
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sat Apr 2 10:32:43 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