pelmered / filament-money-field

Money field powered by Money PHP
MIT License
40 stars 19 forks source link

Cannot parse x.xx to Money. Number parsing failed: U_PARSE_ERROR #20

Closed ahmetkocabiyik closed 3 months ago

ahmetkocabiyik commented 3 months ago

For example when i type 2000, input formatting looks great 2.000. After then I remove last zero so money amount is 200 but it gives an error like below. On the other hand, when i type 200 directy it works great.

Screenshot 2024-04-12 at 09 04 21
pelmered commented 3 months ago

Thank you for this report. I will look into this. Do you have any special configuration of the field?

ahmetkocabiyik commented 3 months ago

No extra special configuration simple like below

MoneyInput::make("amount")
->label("Miktar")
->required(),
ahmetkocabiyik commented 3 months ago

@pelmered is there any update ?

pelmered commented 3 months ago

@ahmetkocabiyik Sorry for the delay and thank you for the patience. This should now be fixed in 1.2.1.

ahmetkocabiyik commented 3 months ago

@pelmered thank you for your great work.