Trying to display Price with ',' decimal Seperation #6678
Replies: 6 comments 8 replies
-
Hi @nordic-digit, I'm not sure if this is related but I had a similar issue when I started using Laravel Money. Do you have any kind of special casts on this field on your model? |
Beta Was this translation helpful? Give feedback.
-
I have found out that there is a general problem with the output when setting the decimal separator to a comma. As a test, I replaced the JSON with a decimal field and the problem is the same. It is stored correctly in the database, but the output is incorrect. |
Beta Was this translation helpful? Give feedback.
-
nothing? Guess i'll open an issue if noone knows a workaround |
Beta Was this translation helpful? Give feedback.
-
ok either way i still got the problem. one of my coworkers has the same. This is weird. I even copy paste your code but it didn't help |
Beta Was this translation helpful? Give feedback.
-
I have the same problem in a repeater (serving a JSON field) where I'm showing a text field with the following
The
is rendered thus: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello,
I am trying to pass the price using the TextInput->mask method with the Repeater Component via a HasMany Relationship. Everything works fine when saving, but when I open the edit mask, the price is always displayed incorrectly. I am trying to use the German notation (, for decimal separation and . for thousand separation). Here is the following code:
Saved in the database:
{"price_c2h":"234.34"}
Output in the form after reloading the mask:
23434,00
I would appreciate any help or guidance on how to resolve this issue. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions