VereinBeratungTherapie/Invoicing/CollectiveInvoiceCreation - Rundung KA auf Stundenpreis umgestellt
SupportOID=164512
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user