Price input in units does not work any more

Hi team,

All our prices are stored internally in cents.

  • we used to display them in units in Forest admin,
  • and also to edit them in units.

Some months ago, it did not cause any problem.

Now, when I am trying to edit these values, I have to input them in cents, instead of units.
I don’t understand.
Is it a setup issue on my side, or is there any change in the way it is managed under Forest admin?

Please have a look on this video as an example.
The field Monthly_load_amount in collection account_limits is setup to display and to edit in prices.

  • the display is working fine
  • the edit does not work as I am expecting.

Could you please let us know how we could recover the edit input in units?
Thanks in advance

My setup:

    "database_type": "postgres",
    "liana": "forest-express-sequelize",
    "liana_version": "6.6.3",
    "engine": "nodejs",
    "engine_version": "12.13.1",
    "orm_version": "5.22.3"

Hello @Louis-Marie

Thank you for your feedback.

Did you just notice this behaviour or can you remember when it appeared for you?

I think I can reproduce your issue on my end, I’ll look into it more and let you know.

Hi @Guillaume_Deslandes

I am sorry, but I am not able to give you precise info on when it appeared.
I would say that it appeared when new widgets were made available in Forest admin, when the way in which the fields setup has evolved.

Hoping this will help you.

Best

Hi @Louis-Marie :wave: I reproduce your issue, to be sure I understand correctly.
You have a table column who store in integer a price, like 18065 for 180.65 €.
For you and me the widget display work as expected on a cent configuration right?

The ambiguous part is the settings of your edit widget. What do you want to do?
The possibility to enter your price with a coma or a dot in cent mode or in a unit mode?

Hi @Arnaud_Moncel

You have a table column who store in integer a price, like 18065 for 180.65 € .

Right!

For you and me the widget display work as expected on a cent configuration right?

Right!

The possibility to enter your price with a coma or a dot in cent mode or in a unit mode?

I would like to be able to enter the value by typing: 180.65 in your example (with a coma or a dot).

The forest admin users would be disturbed if they have to mix cents and units between the input and the display.

Thanks.

I opened a bug report. We will get back to you when the fix will be released

Ok, thank you for your help.

Hi @Louis-Marie,

The patch is now live.
Can you try to setup your widgets in cent mode and let us know if it works as expected now?

Thanks.

1 Like

Hi @arnaud

It works fine now.

Thank you very much.

Have a nice weekend!

1 Like