@verifaktura/cli
v0.1.8
Published
CLI za validaciju e-faktura prema EN 16931.
Readme
@verifaktura/cli
Command line validation of EN 16931 e-invoices.
npx @verifaktura/cli invoice.xml --lang hrNational CIUS profiles load automatically when installed:
npm i @verifaktura/cli @verifaktura/cius-hr
npx verifaktura eracun.xml --lang hrFaktura 12115118 - UBL
Izdavatelj: De Koksmaat
Za plaćanje: 250.33 EUR
GREŠKA BR-02 Račun mora sadržavati broj računa (BT-1).
termovi: BT-1
NEVALIDNO - 1 grešaka, 0 upozorenja (profili: en16931; 211 pravila, 272 ms)Options
| | |
|---|---|
| --lang <en\|hr\|bs\|sr> | message language (default en) |
| --format <text\|json> | output format (default text) |
| --quiet | exit code only |
| -h, --help | help |
Exit codes: 0 valid, 1 fatal findings, 2 execution error — so it works in
CI:
npx @verifaktura/cli invoices/*.xml --quiet || echo "invalid invoice"Programmatic use and report format:
verifaktura.
Licence
Apache-2.0
