ZUGFeRD-csharp icon indicating copy to clipboard operation
ZUGFeRD-csharp copied to clipboard

Validate lineTotal

Open christianschmid200272 opened this issue 1 year ago • 5 comments

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

christianschmid200272 avatar Dec 11 '24 07:12 christianschmid200272