Skip to content

Commit

Permalink
Merge pull request #226 from wp99cp/develop
Browse files Browse the repository at this point in the history
Fix "nur Für Leitende" = 0 bug
  • Loading branch information
wp99cp committed May 1, 2024
2 parents 8b61c8c + 6ea68af commit dc1e9f8
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emeal/menuplanung",
"version": "1.15.1",
"version": "1.15.2",
"license": "MIT",
"copyrights": "© 2019 - 2024 Cevi Züri 11 - eMeal Menüplanung",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ export class EditRecipeInCampComponent implements OnInit, Saveable, OnChanges {
this.mealPart = SettingsService.calcRecipeParticipants(
this.camp.participants,
this.camp.vegetarians,
this.camp.leaders,
this.specificMeal.participants,
specificRecipe.participants,
this.specificMeal.overrideParticipants,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<h2>Neue Versionen - v1.15.1</h2>
<h2>Neue Versionen - v1.15.2</h2>

<div mat-dialog-content>

<h3>Was gibt es neues in eMeal - Menüplanung? </h3>

<p>Dieses Update fügt Neues hinzu:</p>
<p>Dieses Update behebt einen Fehler:</p>

<p class="news-element news-feature">
Neuerdings gibt es auch den Menu-Typ "Dessert".
<p class="news-element news-fixed">
Bisher hat das Berechnen einer Mahlzeit nur für Leiter*innen nicht funktioniert. Dieser Fehler wurde behoben.
</p>

</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ <h3>Anzahl Teilnehmende</h3>
{{calcRecipeParticipants(
camp.participants,
camp.vegetarians,
camp.leaders,
specificMeal.participants,
this.recipeForm.get('overrideParticipants').value,
specificMeal.overrideParticipants,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export class SettingsService {
public static calcRecipeParticipants(
campPart: number,
campVegis: number,
campLeaders: number,
mealPart: number,
recipePart: number,
mealOver: boolean,
Expand All @@ -74,7 +75,7 @@ export class SettingsService {

} else if (vegiState === 'leaders') {

return 0;
return campLeaders;
}

return calcRecipePart;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ <h2>Informationen zur aktuellen Version von eMeal.</h2>
Fehlerbehebungen.
</p>

<h3>Neues in der Version 1.15.2 (1. Mai 2024)</h3>

<p class="news-element news-fixed">
Bisher hat das Berechnen einer Mahlzeit nur für Leiter*innen nicht funktioniert. Dieser Fehler wurde behoben.
</p>


<h3>Neues in der Version 1.15.1 (1. Mai 2024)</h3>

<p class="news-element news-feature">
Expand Down

0 comments on commit dc1e9f8

Please sign in to comment.