# ISDOC-4.1.7

Source: https://xmlvalid.com/rules/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.

- Level: error
- Rule sets: ISDOC 6.0.2 rules
- Context: `isdoc:Invoice/isdoc:InvoiceLines/isdoc:InvoiceLine[isdoc:Item/isdoc:StoreBatches]`
- Test: `sum(isdoc:Item/isdoc:StoreBatches/isdoc:StoreBatch/isdoc:Quantity) = isdoc:InvoicedQuantity`

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

Validate a document against these rules: https://xmlvalid.com/validate
