Fix for API payment rounding

This commit is contained in:
Hillel Coren 2018-04-08 10:50:07 +03:00
parent a69b252b08
commit 4627224fbf

View File

@ -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),
]);
}
}