mirror of
https://github.com/Matewoo/pdf-writer.git
synced 2026-11-18 18:42:50 +01:00
Update soup price in loadWeekData and fix price translation in formatDayContent
This commit is contained in:
@@ -206,7 +206,7 @@ function loadWeekData(week) {
|
|||||||
dailyPriceInput.value = "Business Lunch 6,00 € / 4,20 €";
|
dailyPriceInput.value = "Business Lunch 6,00 € / 4,20 €";
|
||||||
}
|
}
|
||||||
if (!soupPriceInput.value) {
|
if (!soupPriceInput.value) {
|
||||||
soupPriceInput.value = "Großer Teller 4,00 € / Kleiner Teller 2,00 €";
|
soupPriceInput.value = "Großer Teller 4,60 € / Kleiner Teller 2,30 €";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -232,7 +232,7 @@ function loadWeekData(week) {
|
|||||||
dailyPriceInput.value = "Business Lunch 6,00 € / 4,20 €";
|
dailyPriceInput.value = "Business Lunch 6,00 € / 4,20 €";
|
||||||
}
|
}
|
||||||
if (!soupPriceInput.value) {
|
if (!soupPriceInput.value) {
|
||||||
soupPriceInput.value = "Großer Teller 4,00 € / Kleiner Teller 2,00 €";
|
soupPriceInput.value = "Großer Teller 4,60 € / Kleiner Teller 2,30 €";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ function formatDayContent(menuData, dailyData, language, germanMenuData, germanD
|
|||||||
main: dailyData?.daily_soup || defaultData.dailySoup,
|
main: dailyData?.daily_soup || defaultData.dailySoup,
|
||||||
side: '',
|
side: '',
|
||||||
// Translate the text parts of the soup price but maintain German number format
|
// Translate the text parts of the soup price but maintain German number format
|
||||||
price: translatePriceText(germanDailyData?.daily_soup_price || defaultData.dailySoupPrice, isGerman),
|
price: translatePriceText(germanDailyData?.soup_price || defaultData.dailySoupPrice, isGerman),
|
||||||
special: dailyData?.soup_halal ? '„HALAL"' : (dailyData?.soup_veggi ? '„veggi"' : '')
|
special: dailyData?.soup_halal ? '„HALAL"' : (dailyData?.soup_veggi ? '„veggi"' : '')
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user