mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 11:24:28 -04:00
Fix for API payment rounding
This commit is contained in:
parent
a69b252b08
commit
4627224fbf
@ -198,7 +198,7 @@ class InvoiceApiController extends BaseAPIController
|
|||||||
$payment = $this->paymentRepo->save([
|
$payment = $this->paymentRepo->save([
|
||||||
'invoice_id' => $invoice->id,
|
'invoice_id' => $invoice->id,
|
||||||
'client_id' => $client->id,
|
'client_id' => $client->id,
|
||||||
'amount' => $data['paid'],
|
'amount' => round($data['paid'], 2),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user