mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Format number inputs for euro currencies
This commit is contained in:
parent
9c6a65c26e
commit
485b80128f
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Http\Requests\ClientPortal\PrePayments;
|
namespace App\Http\Requests\ClientPortal\PrePayments;
|
||||||
|
|
||||||
|
use App\Utils\Number;
|
||||||
use App\Http\ViewComposers\PortalComposer;
|
use App\Http\ViewComposers\PortalComposer;
|
||||||
use Illuminate\Foundation\Http\FormRequest;
|
use Illuminate\Foundation\Http\FormRequest;
|
||||||
|
|
||||||
@ -35,6 +36,7 @@ class StorePrePaymentRequest extends FormRequest
|
|||||||
{
|
{
|
||||||
$input = $this->all();
|
$input = $this->all();
|
||||||
|
|
||||||
|
$input['amount'] = Number::parseFloat($input['amount'], auth()->guard('contact')->user()->client->currency()->precision ?? 2);
|
||||||
|
|
||||||
$this->replace($input);
|
$this->replace($input);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user