Invoicing/InvoiceCreation.cs - CheckMaxApprovedAmount MIT Faktor, falls vorhanden

This commit is contained in:
2025-04-22 14:23:01 +02:00
parent 62a75d3afc
commit 9aa6b70c03

View File

@@ -612,6 +612,11 @@ namespace BeWo.Service.Invoicing
ii.AmountTotal = ii.AmountPerUnit.Value*ii.UnitCount;
ii.GrossAmountTotal = ii.AmountTotal;
}
if (ii.RateFactor.HasValue)
{
ii.AmountTotal *= (ii.RateFactor + 100) / 100;
ii.GrossAmountTotal *= (ii.RateFactor + 100) / 100;
}
totalHours = sip.ApprovedHours.Value;
}
else