Fix for API payment rounding
This commit is contained in:
parent
a69b252b08
commit
4627224fbf
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ class InvoiceApiController extends BaseAPIController
|
|||
$payment = $this->paymentRepo->save([
|
||||
'invoice_id' => $invoice->id,
|
||||
'client_id' => $client->id,
|
||||
'amount' => $data['paid'],
|
||||
'amount' => round($data['paid'], 2),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue