VereinBeratungTherapie/Invoicing/CollectiveInvoiceCreation - Rundung KA auf Stundenpreis umgestellt

SupportOID=164512
This commit is contained in:
2026-06-09 15:26:59 +02:00
parent a9e40a0569
commit 2e78b2f854

View File

@@ -240,8 +240,9 @@ namespace VereinBeratungTherapie.Invoicing
// KA wird auf nächste halbe Stunde gerundet...
lgMin = Math.Round(lgMin / 30) * 30;
preisLG = data[0].AmountTotal.Value;
preis = Math.Round(preisLG / 60, 4, MidpointRounding.AwayFromZero);
ii.AmountPerUnit = Math.Round(preis * lgMin, 2, MidpointRounding.AwayFromZero);
//preis = Math.Round(preisLG / 60, 4, MidpointRounding.AwayFromZero);
//ii.AmountPerUnit = Math.Round(preis * lgMin, 2, MidpointRounding.AwayFromZero);
ii.AmountPerUnit = Math.Round(lgMin / 60 * preisLG, 2, MidpointRounding.AwayFromZero);
ii.AmountTotal = ii.UnitCount * ii.AmountPerUnit;
}
}