Neue Abrechnung für Außerschulische Betreuungsleistungen
This commit is contained in:
@@ -26,6 +26,62 @@ namespace BeWo.Report.ReportObjects
|
||||
|
||||
public List<AdditionalServiceBookingRow> Rows { get; set; }
|
||||
|
||||
public static AdditionalServiceBookingRO Create(AdditionalServiceRegion region, DateTime month)
|
||||
{
|
||||
var monat = GetMonat(month);
|
||||
return Create(region, monat, month.Year);
|
||||
}
|
||||
|
||||
private static Monat GetMonat(DateTime month)
|
||||
{
|
||||
if (month.Month == 1)
|
||||
{
|
||||
return Monat.Januar;
|
||||
}
|
||||
if (month.Month == 2)
|
||||
{
|
||||
return Monat.Februar;
|
||||
}
|
||||
if (month.Month == 3)
|
||||
{
|
||||
return Monat.März;
|
||||
}
|
||||
if (month.Month == 4)
|
||||
{
|
||||
return Monat.April;
|
||||
}
|
||||
if (month.Month == 5)
|
||||
{
|
||||
return Monat.Mai;
|
||||
}
|
||||
if (month.Month == 6)
|
||||
{
|
||||
return Monat.Juni;
|
||||
}
|
||||
if (month.Month == 7)
|
||||
{
|
||||
return Monat.Juli;
|
||||
}
|
||||
if (month.Month == 8)
|
||||
{
|
||||
return Monat.August;
|
||||
}
|
||||
if (month.Month == 9)
|
||||
{
|
||||
return Monat.September;
|
||||
}
|
||||
if (month.Month == 10)
|
||||
{
|
||||
return Monat.Oktober;
|
||||
}
|
||||
if (month.Month == 11)
|
||||
{
|
||||
return Monat.November;
|
||||
}
|
||||
|
||||
return Monat.Dezember;
|
||||
}
|
||||
|
||||
public static AdditionalServiceBookingRO Create(AdditionalServiceRegion region, Monat month, int year)
|
||||
{
|
||||
var result = new AdditionalServiceBookingRO
|
||||
|
||||
Reference in New Issue
Block a user