Skip to content

Refactor Product Invoice Address Handling and Enhance Tests#3

Open
mxrcog wants to merge 1 commit into
developfrom
dev-marco
Open

Refactor Product Invoice Address Handling and Enhance Tests#3
mxrcog wants to merge 1 commit into
developfrom
dev-marco

Conversation

@mxrcog

@mxrcog mxrcog commented Jan 16, 2026

Copy link
Copy Markdown
Contributor
  • Updated _build_invoice_data_from_doc to use client address fields instead of delivery fields for buyer information.
  • Added logic to include delivery address in the invoice body when has_delivery_address is checked.
  • Modified CFOP calculation to utilize client_state instead of delivery_state.
  • Adjusted test cases to verify correct usage of address fields and CFOP calculations.
  • Created comprehensive tests for address field handling in product invoices.
  • Updated dependencies in package.json and package-lock.json for compatibility.

- Updated `_build_invoice_data_from_doc` to use client address fields instead of delivery fields for buyer information.
- Added logic to include delivery address in the invoice body when `has_delivery_address` is checked.
- Modified CFOP calculation to utilize `client_state` instead of `delivery_state`.
- Adjusted test cases to verify correct usage of address fields and CFOP calculations.
- Created comprehensive tests for address field handling in product invoices.
- Updated dependencies in `package.json` and `package-lock.json` for compatibility.
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