# Price input in units does not work any more

**URL:** <https://community.forestadmin.com/t/price-input-in-units-does-not-work-any-more/1735>\
**Category:** Help me!\
**Created:** [January 31, 2021, 2:14pm UTC](https://community.forestadmin.com/t/price-input-in-units-does-not-work-any-more/1735 "2021-01-31T14:14:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Louis-Marie](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@Louis-Marie](https://community.forestadmin.com/u/Louis-Marie)\
**Post date:** [January 31, 2021, 2:14pm UTC](https://community.forestadmin.com/t/price-input-in-units-does-not-work-any-more/1735/1 "2021-01-31T14:14:34Z")

</div>

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:

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

```

---

<div class="post-metadata">

**Author:** ![anon79585656](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@anon79585656](https://community.forestadmin.com/u/anon79585656)\
**Post date:** [February 1, 2021, 10:33am UTC](https://community.forestadmin.com/t/price-input-in-units-does-not-work-any-more/1735/2 "2021-02-01T10:33:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Louis-Marie](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@Louis-Marie](https://community.forestadmin.com/u/Louis-Marie)\
**Post date:** [February 1, 2021, 10:46am UTC](https://community.forestadmin.com/t/price-input-in-units-does-not-work-any-more/1735/3 "2021-02-01T10:46:27Z")

</div>

Hi @anon79585656

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

---

<div class="post-metadata">

**Author:** ![Arnaud\_Moncel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud_moncel/32/24_2.png) [@Arnaud\_Moncel](https://community.forestadmin.com/u/Arnaud_Moncel)\
**Post date:** [February 3, 2021, 2:41pm UTC](https://community.forestadmin.com/t/price-input-in-units-does-not-work-any-more/1735/4 "2021-02-03T14:41:49Z")

</div>

Hi @Louis-Marie 👋 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?

---

<div class="post-metadata">

**Author:** ![Louis-Marie](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@Louis-Marie](https://community.forestadmin.com/u/Louis-Marie)\
**Post date:** [February 3, 2021, 3:09pm UTC](https://community.forestadmin.com/t/price-input-in-units-does-not-work-any-more/1735/5 "2021-02-03T15:09:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Arnaud\_Moncel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud_moncel/32/24_2.png) [@Arnaud\_Moncel](https://community.forestadmin.com/u/Arnaud_Moncel)\
**Post date:** [February 3, 2021, 3:33pm UTC](https://community.forestadmin.com/t/price-input-in-units-does-not-work-any-more/1735/6 "2021-02-03T15:33:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Louis-Marie](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@Louis-Marie](https://community.forestadmin.com/u/Louis-Marie)\
**Post date:** [February 3, 2021, 3:34pm UTC](https://community.forestadmin.com/t/price-input-in-units-does-not-work-any-more/1735/7 "2021-02-03T15:34:19Z")

</div>

Ok, thank you for your help.

---

<div class="post-metadata">

**Author:** ![arnaud](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud/32/32_2.png) [@arnaud](https://community.forestadmin.com/u/arnaud)\
**Post date:** [February 5, 2021, 1:12pm UTC](https://community.forestadmin.com/t/price-input-in-units-does-not-work-any-more/1735/8 "2021-02-05T13:12:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Louis-Marie](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@Louis-Marie](https://community.forestadmin.com/u/Louis-Marie)\
**Post date:** [February 5, 2021, 6:38pm UTC](https://community.forestadmin.com/t/price-input-in-units-does-not-work-any-more/1735/9 "2021-02-05T18:38:08Z")

</div>

Hi @arnaud

It works fine now.

Thank you very much.

Have a nice weekend!
