ZUGFeRD-csharp
ZUGFeRD-csharp copied to clipboard
Validate lineTotal
Hi,
actual I test the InvoiceValidator, the calculation of lineTotal is current based on NetUnitPrice * BilledQuantity but I think right one is NetUnitPrice * (BilledQuantity / UnitQuantity).
example: unit 1000 pcs. price per unit 150€ purchased quantity 350
https://github.com/stephanstapel/ZUGFeRD-csharp/blob/fa17b6425470ade812802cb95fab1209feab7830/ZUGFeRD/InvoiceValidator.cs#L73