Fix for payment rounding

This commit is contained in:
Hillel Coren 2018-07-26 22:32:33 +03:00
parent 089f5f6cb4
commit 549216f30a

View File

@ -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) {