Fix for payment rounding
This commit is contained in:
parent
089f5f6cb4
commit
549216f30a
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue