vendor_payment_diff_amount/CHANGELOG.md

41 lines
1.4 KiB
Markdown

# Changelog
## Version 2.0.0 (2024)
### Major Changes
- **Breaking Change**: Converted from single deduction fields to multiple deduction lines (One2many)
- Added new model `payment.deduction.line` for storing individual deductions
- `amount_substract` is now a computed field (sum of all deduction lines)
- Removed `substract_account_id` field (replaced by deduction lines)
### Features
- Support for multiple deductions per payment
- Each deduction can have its own account and description
- Drag-and-drop reordering of deduction lines
- Automatic calculation of total deductions
- Full integration with batch payments
### Views
- Updated payment form to show editable tree of deduction lines
- Updated batch payment to support deduction lines in form view
- Added total deductions column to batch payment tree view
### Technical
- Added security rules for `payment.deduction.line` model
- Updated journal entry creation to handle multiple deduction lines
- Maintained backward compatibility for journal entry structure
### Migration
- See UPGRADE_TO_V2.md for detailed migration instructions
- Existing payments with single deductions need manual migration
## Version 1.0.0 (Initial Release)
### Features
- Single deduction amount per payment
- Single deduction account per payment
- Final payment amount calculation
- Journal entry with deduction line
- Integration with batch payments
- Validation for deduction amounts