PerspektivenEV/Invoicing/CollectiveInvoiceCreationBthg - Rundung LWV

This commit is contained in:
2024-03-22 10:41:00 +01:00
parent 8b6b495059
commit 0db8365fe1

View File

@@ -232,14 +232,14 @@ namespace PerspektivenEV.Invoicing
}
else
{
if (start > new DateTime(2023, 12, 31) && (cb2sc.CostBearer.Organisation.Name.Contains("Landeswohlfahrtsverband Hessen") || cb2sc.CostBearer.Organisation.Name.Contains("LWV")))
{
ii.AmountPerUnit = (decimal)Math.Round(LG * (decimal)Math.Truncate((double)data[0].AmountTotal / 60 * 10000) / 10000, 2, MidpointRounding.AwayFromZero);
}
else
{
//if (start > new DateTime(2023, 12, 31) && (cb2sc.CostBearer.Organisation.Name.Contains("Landeswohlfahrtsverband Hessen") || cb2sc.CostBearer.Organisation.Name.Contains("LWV")))
//{
// ii.AmountPerUnit = (decimal)Math.Round(LG * (decimal)Math.Truncate((double)data[0].AmountTotal / 60 * 10000) / 10000, 2, MidpointRounding.AwayFromZero);
//}
//else
//{
ii.AmountPerUnit = (decimal)Math.Round((double)data[0].AmountTotal * Math.Round((double)LG / 60, 2, MidpointRounding.AwayFromZero), 2, MidpointRounding.AwayFromZero);
}
//}
}
// Leistung
if (cat.Abbreviation.Substring(cat.Abbreviation.Length - 2) == "QA" || cat.Abbreviation.Substring(cat.Abbreviation.Length - 5) == "QAAlt")