ISDOC-4.1.7

Součet Quantity ze všech záznamů rozpisu šarží/sériových čísel musí odpovídat InvoicedQuantity dané řádky faktury.

In English The quantities of the batches or serial numbers of a line must add up to the line's InvoicedQuantity.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
isdoc:Invoice/isdoc:InvoiceLines/isdoc:InvoiceLine[isdoc:Item/isdoc:StoreBatches]
Test
sum(isdoc:Item/isdoc:StoreBatches/isdoc:StoreBatch/isdoc:Quantity) = isdoc:InvoicedQuantity

Checked with ISDOC 6.0.2