From a9491c1a6c3be10f43bda388804e70b0cf95ceb8 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sat, 2 Apr 2016 10:33:08 -0700 Subject: [PATCH] round unitsetup and unitrecur rather than error out about them, RT#41570 --- FS/FS/cust_main/Billing.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FS/FS/cust_main/Billing.pm b/FS/FS/cust_main/Billing.pm index 37d787251..2f9eecdf5 100644 --- a/FS/FS/cust_main/Billing.pm +++ b/FS/FS/cust_main/Billing.pm @@ -1474,9 +1474,9 @@ sub _make_lines { my $cust_bill_pkg = new FS::cust_bill_pkg { 'pkgnum' => $cust_pkg->pkgnum, 'setup' => $setup, - 'unitsetup' => $unitsetup, + 'unitsetup' => sprintf('%.2f', $unitsetup), 'recur' => $recur, - 'unitrecur' => $unitrecur, + 'unitrecur' => sprintf('%.2f', $unitrecur), 'quantity' => $cust_pkg->quantity, 'details' => \@details, 'discounts' => [ @setup_discounts, @recur_discounts ], -- 2.11.0