Commit Graph

3 Commits

Author SHA1 Message Date
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
2f597d79df feat(postinstall): Add robust postinstall resource download with version checking
- Implemented version checking to avoid unnecessary re-downloads
- Added retry logic with 3 attempts for network failures
- Included network connectivity detection
- Graceful error handling that never fails the install
- Support for CI environment variable (EINVOICE_SKIP_RESOURCES)
- Successfully tested all functionality including version checking and error handling
2025-08-12 05:02:42 +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