Skip to content

Implement CII Writer for France reform application#84

Draft
strowbeary wants to merge 21 commits intojosemmo:masterfrom
nicoka-orinea:cii-mapping
Draft

Implement CII Writer for France reform application#84
strowbeary wants to merge 21 commits intojosemmo:masterfrom
nicoka-orinea:cii-mapping

Conversation

@strowbeary
Copy link
Copy Markdown

Generate a FacturX ready XML.
tested only with EsaLink Hubtimize plateform

…ance correctness for trade agreement, delivery, settlement, and line item handling.
…and prepare for handling charges and allowances.
Add `addLineAllowanceOrCharge` method to process specific trade allowances and charges with VAT handling. Integrate allowances and charges processing for both line and header levels, ensuring proper calculation and representation.
… breakdown

Refactor allowance and charge processing to support VAT breakdown splitting at the header level. Adjust gross and net unit price calculations and improve fallback logic for VAT category and rate. Add methods to handle percentage-based and fixed distribution for allowances/charges. Update tax-specific processing to ensure EN16931 compliance.
…ation

Implement recalculation of VAT breakdowns post-header adjustments. Ensure accurate taxable amounts and VAT totals in monetary summation. Refactor to support precise distribution of both fixed and percentage-based allowances/charges. Ensure EN16931 compliance with updated calculations.
…, charges, and advanced fields

Implement `CiiReader` to parse CII XML invoices, extracting header, line-level data, allowances, charges, and VAT details. Add comprehensive test coverage for various invoice scenarios, including advanced fields like notes, trade references, and contact information. Ensure compliance with EN16931 standards.
…ve parsing logic

Add support for parsing payment details including payment references, means codes, and account information with transfers. Improve formatting consistency by standardizing braces and spacing. Enhance compliance with EN16931 standards by refining currency, VAT, and rounding amount logic.
…t values

Refactor payment and transfer parsing to ensure all fields are processed as text, improving type consistency and error prevention.
… capabilities

Add classes for `AcknowledgementDocument`, `CdarReader`, `CdarWriter`, `DocumentContext`, `ExchangedDocument`, `CdarStatusDefinition`, and `CdarStatusMap` to support comprehensive CDAR document processing. Implement methods for importing, exporting, and mapping. Ensure integration with cross-domain acknowledgements.
…cumentation

Introduce comprehensive guides for CDAR status mapping, exporting, and importing XML. Enhance CDAR class documentation with detailed descriptions and usage examples, improving developer understanding and usability.
…in ReferenceReferencedDocument

Introduce the `DocumentTypeCode` enumeration to define standardized referenced document type codes. Update the `ReferenceReferencedDocument` class to utilize the new enum for improved type handling. Add `getDocumentType` method for converting type codes to enum values, ensuring consistency and reducing error-prone string manipulations.
…andling in ReferenceReferencedDocument"

This reverts commit bab349a.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant