Bug when editing decimal values
Hello,
I trying to attach a model with a decimal pivot value.
The value looks good in the table, but it does not when editing it (Cf. image).
Here is my code :
The value is correctly stored in the database (structure : decimal(6,2) )
Thanks !
2 Replies
You need to mutate the value.
money()
uses cents as a base, while the form just uses your valueOk thanks. I finally managed with this method.