Commit Graph

3 Commits

Author SHA1 Message Date
58506e287d refactor: Move downloaded resources from assets/ to assets_downloaded/
- Changed default download location to assets_downloaded/schematron
- Updated all references in SchematronDownloader, integration, and validator
- Updated postinstall scripts to use new location
- assets_downloaded/ is already in .gitignore to exclude downloaded files from git
- Moved existing downloaded files to new location
- All functionality tested and working correctly
2025-08-12 05:25:50 +00:00
8dd5509da6 fix(schematron): Correct download URLs for XRechnung and PEPPOL validation files
- Fixed XRechnung URLs to use correct filenames (XRechnung-UBL-validation.sch)
- Removed non-existent PEPPOL-T10 and PEPPOL-T14 files
- Added PEPPOL-EN16931-CII validation file
- All 7 validation files now download successfully:
  - 3 EN16931 files (UBL, CII, EDIFACT)
  - 2 PEPPOL files (UBL, CII)
  - 2 XRechnung files (UBL, CII)
2025-08-12 05:14:11 +00:00
10e14af85b feat(validation): Implement EN16931 compliance validation types and VAT categories
- Added validation types for EN16931 compliance in `validation.types.ts`, including interfaces for `ValidationResult`, `ValidationOptions`, and `ValidationReport`.
- Introduced `VATCategoriesValidator` in `vat-categories.validator.ts` to validate VAT categories according to EN16931 rules, including detailed checks for standard, zero-rated, exempt, reverse charge, intra-community, export, and out-of-scope services.
- Enhanced `IEInvoiceMetadata` interface in `en16931-metadata.ts` to include additional fields required for full standards compliance, such as delivery information, payment information, allowances, and charges.
- Implemented helper methods for VAT calculations and validation logic to ensure accurate compliance with EN16931 standards.
2025-08-11 12:25:32 +00:00