Bugfix bei LH Bad Kreuznach Wohnstätte: Abrechnung für ergänzende Dienste hat teilweise Tage nicht korrekt abgerechnet
This commit is contained in:
@@ -314,8 +314,9 @@ namespace LebenshilfeBadKreuznachWohnstaette.Invoicing
|
||||
var tageMonat = monatEnde.Subtract(start).Days;
|
||||
decimal? sumCustomerMonth = 0;
|
||||
int anwesendTage = 0;
|
||||
List<AdditionalServiceBookingDC> additionalServices = null;
|
||||
additionalServices = os.GetAllAdditionalServiceBookingsForCustomer(customer.Oid.Value, serviceInvoicePeriod.Start.Value, serviceInvoicePeriod.End.Value);
|
||||
var additionalServices = DAOFactory.SearchDAO.GetAdditionalServiceBookingsForCustomer(customer.Oid.Value, serviceInvoicePeriod.Start.Value, serviceInvoicePeriod.End.Value);
|
||||
|
||||
//additionalServices = os.Addition GetAllAdditionalServiceBookingsForCustomer(customer.Oid.Value, serviceInvoicePeriod.Start.Value, serviceInvoicePeriod.End.Value).Where(a => a.par;
|
||||
bool bereichTsa = false;
|
||||
if (scap.ServiceCategory.Abbreviation.Contains("TSA"))
|
||||
{
|
||||
@@ -326,7 +327,23 @@ namespace LebenshilfeBadKreuznachWohnstaette.Invoicing
|
||||
{
|
||||
additionalServices = additionalServices.Where(a => a.AdditionalServiceRegion.AdditionalService.Name != "TSA" && !a.AdditionalServiceRegion.AdditionalService.Name.Contains("gelöscht")).ToList();
|
||||
}
|
||||
anwesendTage += additionalServices.Where(service => service.CustomerOidDict.TryGetValue(customer.Oid.Value, out var isPresent) && isPresent).Count();
|
||||
|
||||
Dictionary<String, bool> tagesDict = new Dictionary<string, bool>();
|
||||
|
||||
//Bugfix CB 13.01.26: Participated muss geprüft werden und es können Doppler am Tag vorkommen. Diese hier herausfiltern
|
||||
foreach (var item in additionalServices)
|
||||
{
|
||||
foreach (var c2a in item.Customer2AddServiceBookings)
|
||||
{
|
||||
if (c2a.CustomerOid == customer.Oid.Value && c2a.Participated && !tagesDict.ContainsKey(item.Datum.Value.ToShortDateString()))
|
||||
{
|
||||
anwesendTage++;
|
||||
tagesDict.Add(item.Datum.Value.ToShortDateString(), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
//anwesendTage += additionalServices.Where(service => service.CustomerOidDict.TryGetValue(customer.Oid.Value, out var isPresent) && isPresent).Count();
|
||||
|
||||
|
||||
|
||||
var ii = new InvoiceItem();
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace BeWo.Service.Plugins
|
||||
//t = "7752610643"; // BWK Gbr
|
||||
//t = "3785623125"; // Betreuwo
|
||||
//t = "7130228334"; // LH Borken
|
||||
t = "4209820830"; // VKM Hamm
|
||||
//t = "4209820830"; // VKM Hamm
|
||||
//t = "5700328131"; // Betreutes Wohnen St. Ludgerus Essen-Werden
|
||||
//t = "1907984777"; // Soziale Dienste Katrin Schmidt
|
||||
//t = "9033246467"; // SKM Menden
|
||||
@@ -137,7 +137,7 @@ namespace BeWo.Service.Plugins
|
||||
//t = "3227700467"; // Psychosozialer Trägerverein
|
||||
//t = "4378753169"; // Die Wohnhelfer Köln
|
||||
//t = "2214258555"; // Betreuungsbüro Baak
|
||||
//t = "4525013596"; // Hph Bersenbrück Freizeit und Reisen
|
||||
t = "4525013596"; // Hph Bersenbrück Freizeit und Reisen
|
||||
//t = "1609455614"; // Hph Bersenbrück Aph
|
||||
//t = "7852961459"; // B&B Betreutes Wohnen
|
||||
//t = "8719930557"; // Lebenshilfe Rhein-Sieg
|
||||
@@ -226,7 +226,7 @@ namespace BeWo.Service.Plugins
|
||||
//t = "7817461089"; // FAB e.V. (Familienarbeit und Beratung e.V.)
|
||||
//t = "5207911843"; // Pro Balance
|
||||
//t = "8619663355"; // HSH Cologne
|
||||
t = "1652658918"; // LH Frankfurt Oder
|
||||
//t = "1652658918"; // LH Frankfurt Oder
|
||||
//t = "7696927868"; // Kuhring Betreuung
|
||||
//t = "6251348980"; // BeWo Gün
|
||||
//t = "6782533512"; // LH Dorsten
|
||||
@@ -305,7 +305,7 @@ namespace BeWo.Service.Plugins
|
||||
//t = "8251343124"; // Rat Plus Tat
|
||||
//t = "6819347851"; // Awo Kreisverband Plön
|
||||
//t = "2385915144"; // AKGG GmbH
|
||||
t = "8002913382"; // AKGG GmbH (MID)
|
||||
//t = "8002913382"; // AKGG GmbH (MID)
|
||||
//t = "5155880294"; // BHV Bergische Hauspflege
|
||||
//t = "8366649557"; // Münchner Aids-Hilfe e.V.
|
||||
//t = "2976949196"; // WHB Refrath gGmbH
|
||||
|
||||
Reference in New Issue
Block a user