# XV-PL-31

Source: https://xmlvalid.com/rules/XV-PL-31

> … (…) must be P_15 plus the charges less the deductions (…), DoRozliczenia the overpayment when that is negative (FA(3) information sheet, DoZaplaty).

- Level: error
- Rule sets: KSeF and FA(3) checks KSeF 2.0 invoice verification (9 April 2026), FA(3) information sheet (August 2026)
- Context: `/fa:Faktura/fa:Fa/fa:Rozliczenie`
- Test: `(not(fa:DoZaplaty) or pl:near(pl:dec(fa:DoZaplaty), $balance, 0.001)) and (not(fa:DoRozliczenia) or pl:near(pl:dec(fa:DoRozliczenia), -$balance, 0.001))`

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