-
-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Money field does not show up #3228
Comments
Hello @jasdeepsingh it's working as expected on our demo https://main.avodemo.com/avo/resources/products/new Please provide a minimal reproduction repository where we can reproduce it. |
I had the same. In my case it was because I had the database field configured to be nullable, meaning both the value and the currency could become null. For me the solution was to default the value to 0 and the currency to my main currency. Then the Avo money fields would show up in the forms. |
@Paul-Bob Here's a repo where this bug can be reproduced: https://github.com/metaware/avo-money-bug Steps to reproduce:
Try to create a new Product. Expectation: Price field is rendered.
|
Thanks for the reproduction repository, I was able to identify the issue. You're missing the I'm closing as solved, please let me know if the issue persists. |
Describe the bug
Using the avo money field on a resource as follows:
However, the field is not showing up or rendering in UI (create/edit forms). If I change the field type to
number
, it works fine. The actual field name in DB isprice_cents
Steps to Reproduce
Expected behavior & Actual behavior
Expected result: Money field shows up in the create/edit form.
Actual result: Money field does not show up in create/edit form
Models and resource files
System configuration
Avo version: 3.12.0
Rails version: 7.2.1
Ruby version: 3.3.4
License type:
Are you using Avo monkey patches, overriding views or view components?
Screenshots or screen recordings
N/A
Additional context
Impact
Urgency
The text was updated successfully, but these errors were encountered: