mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for payment rounding
This commit is contained in:
parent
089f5f6cb4
commit
549216f30a
@ -193,7 +193,7 @@ class PaymentRepository extends BaseRepository
|
||||
|
||||
if (! $publicId) {
|
||||
$clientId = $input['client_id'];
|
||||
$amount = Utils::parseFloat($input['amount']);
|
||||
$amount = round(Utils::parseFloat($input['amount']), 2);
|
||||
$amount = min($amount, MAX_INVOICE_AMOUNT);
|
||||
|
||||
if ($paymentTypeId == PAYMENT_TYPE_CREDIT) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user