diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-04-02 10:33:08 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-04-02 10:33:08 -0700 |
commit | a9491c1a6c3be10f43bda388804e70b0cf95ceb8 (patch) | |
tree | 6de82737fae6c58562049290bec1920a6673c369 /FS | |
parent | fee90e01f8fa5ee58153b558b3a2129982bee1cb (diff) |
round unitsetup and unitrecur rather than error out about them, RT#41570
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_main/Billing.pm | 4 |
1 files 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 ], |