foodcoopsat / foodsoft_hackathon

Other
1 stars 2 forks source link

Edit all articles: Price and price unit displayed incorrectly #85

Closed twothreenine closed 2 months ago

twothreenine commented 2 months ago

It seems to me that in the price unit dropdown, the supplier order unit is selected instead of the price unit. The price is also displayed as it is saved in the database (per supplier order unit).

Bread example: grafik should be 3.00 per kilogram

similar to #83

lentschi commented 2 months ago

@twothreenine Which form/view are you referring to?

It looks like the article master data form to me, but I can't reproduce the issue: When opening the edit form of 'Bread' with the hackathon seeds (which I had to temporarily restore using git checkout e517eb232abc32a3ebe8f3af8e9a75ab3ae7cc7e~1 -- db/seeds/hackathon.seeds.rb as they have already been removed from the master ), the following is being displayed:

grafik

Changing and saving price and/or unit seems to work properly too. (Of course you could change it to piece, but that wouldn't be a bug...?)

lentschi commented 2 months ago

Aaah - you were referring to the "edit all" table. (@twothreenine Please add this info to the description too, not just to the title - that can be easily overlooked.)