Studentenwerk Prices
COM8 opened this issue · 1 comments
Description
Since the new Mensa in Garching opened pricing changed.
Now dishes have a base price
with a per 100g
price that gets added to the base price.
The Studentenwerk shows still only the old prices on their website. Based on the imprint at the end of the website prices were last updated on the 05.07.2019.
Looks like this is still outstanding for the new Mensa in Garching.
Example
Here is an example of the actual pricing for dishes on the 16.09.2019:
As a reference here the menu of that week.
Suggested solution
To not break existing applications that build on top of eat-api
we should set the base price
as price
attribute and then include two new attributes: price_per_unit
and unit
Since It looks like they would like to be change the unit (100g) some time in the future.
Example:
An example how prices would look like for students as customers:
{
"date": "2019-09-16",
"dishes": [
{
"name": "Pasta mit Broccoli-Sahne-Sauce",
"price": "0",
"price_per_unit": "0.75",
"unit": "100g",
"ingredients": [
"Mi",
"Gl",
"Kn",
"GlW"
],
"dish_type": "Pasta"
},
{
"name": "Holzfällersteak vom Schwein",
"price": "1",
"price_per_unit": "0.75",
"unit": "100g",
"ingredients": [
"Mi",
"GlG",
"Kn",
"2",
"3",
"GlW",
"S",
"Gl"
],
"dish_type": "Grill"
},
{
"name": "Mexikanischer Reistopf mit Bohnen, Paprika und Mais",
"price": "0",
"price_per_unit": "0.33",
"unit": "100g",
"ingredients": [
"Kn"
],
"dish_type": "Vegan, Eintopf, Suppe"
},
{
"name": "Tomatensuppe",
"price": "0",
"price_per_unit": "0.75",
"unit": "100g",
"ingredients": [],
"dish_type": "Tagessuppe"
},
{
"name": "Paniertes Truthahnschnitzel mit Salsa",
"price": "1",
"price_per_unit": "0.75",
"unit": "100g",
"ingredients": [
"11",
"2",
"GlW",
"Gl",
"So"
],
"dish_type": "Fleisch"
}
]
}
TODO
- Wait for/Request the new Mensa prices from the Studentenwerk
- Update price lists