CorrectionMethod enum represents the methods for applying corrections in corrective or credit invoices. It defines how the correction relates to the original invoice.
Enum Cases
| Case | Code | Description | Use Case |
|---|---|---|---|
FullReplacement | 01 | Full replacement (Rectificación íntegra) | Replace entire original invoice |
Differences | 02 | Differences only (Rectificación por diferencias) | Only correct the changed amounts |
VolumeDiscount | 03 | Volume discount (Descuento por volumen) | Apply volume/period discount |
TaxAuthorityAuthorized | 04 | Tax authority authorized | Authorized by Tax Agency |
Correction Method Details
FullReplacement (01)
Full replacement creates a corrective invoice that completely replaces the original invoice. The corrective invoice contains all line items with the correct values. When to use:- Correcting multiple errors in the original invoice
- Simplifying accounting by voiding and reissuing
- Major changes to invoice structure
- Original invoice is considered void
- Corrective invoice contains all correct values
- Both invoices remain in accounting records
Differences (02)
Differences method creates a corrective invoice that only includes the differences (positive or negative) between the original and corrected amounts. When to use:- Partial refunds or adjustments
- Correcting specific line items
- Clearer audit trail of changes
- Original invoice remains valid
- Corrective invoice shows only the delta
- Final amount = Original + Correction
VolumeDiscount (03)
Volume discount is a special correction type for applying retrospective discounts based on purchase volume or period. When to use:- End-of-period volume rebates
- Loyalty discounts applied retrospectively
- Bulk purchase incentives
- Original invoices remain valid
- Corrective invoice reduces total due
- References multiple original invoices
TaxAuthorityAuthorized (04)
Tax authority authorized corrections are explicitly approved or required by the Spanish Tax Agency (AEAT). When to use:- Tax agency audit adjustments
- Official correction requests
- Special circumstances requiring authorization
Usage Examples
Full Replacement Example
Differences Example
Volume Discount Example
Tax Authority Authorized Example
Choosing the Right Method
Use Full Replacement When:
- Multiple fields need correction
- Complete invoice structure changes
- Simplicity is preferred over precision
- Both parties agree to void and reissue
Use Differences When:
- Only specific amounts change
- Detailed audit trail needed
- Partial refunds or adjustments
- Original invoice mostly correct
Use Volume Discount When:
- Retrospective discounts
- Multiple invoices affected
- Period-end rebates
- Loyalty programs
Use Tax Authority Authorized When:
- Correction mandated by AEAT
- Audit adjustments
- Official requirements
- Special circumstances
Accounting Impact
| Method | Original Invoice | Corrective Invoice | Net Effect |
|---|---|---|---|
| Full Replacement | Voided | Replaces original | New total |
| Differences | Remains valid | Adds to original | Original ± Correction |
| Volume Discount | Remain valid | Reduces total | Sum of all |
| Tax Authority | Depends on case | As directed | As required |
Notes
- The correction method must match the correction reason logically
- Full replacement is simpler but creates more accounting entries
- Differences method provides better traceability
- Volume discounts can reference multiple original invoices
- Always document the reason for corrections
- Keep supporting documentation for audits
See Also
- CorrectionReason - Why the correction is needed
- Invoice::setCorrectionMethod() - Set correction method
- Invoice::addCorrectedInvoice() - Reference original invoices