EACopyTaxesFromFromDoc
This document was generated using Claude.ai
Overview
Copies maximum normal tax percentages (Tax1-Tax4) from parent invoice lines to child invoice lines. Ensures tax consistency across related documents by synchronizing tax rate settings between source and derived invoices.
When This Action Runs
Manual execution on invoice documents that have parent-child line relationships, typically when tax rates need to be synchronized from source invoices to derived invoices like credit notes or return documents.
How It Works
- Processes invoice lines - Iterates through all document lines (only InvoiceLine types)
- Finds parent lines - Locates corresponding parent invoice line from source document
- Initializes null values - Updates null tax fields on both parent and child lines
- Copies tax percentages - Transfers maximum normal percentages for all four tax types
- Skips non-invoice lines - Ignores lines that are not InvoiceLine instances
Parameters
This action does not require any parameters.
Database Tables Affected
- Invoice Lines - Updates tax percentage fields (MaxNormalPercent for Tax1-Tax4)
- Parent Document References - Reads parent line relationships (read-only)
- Price Information - Modifies tax components within line pricing
Module: supplychain
Full Class Name: com.namasoft.modules.supplychain.domain.utils.plugnplay.EACopyTaxesFromFromDoc