account_payment_line
This module adds configurable counterpart lines to payments so users can apportion amounts across invoices, write-offs, and analytic allocations in complex settlement scenarios.
Key Features
- account.payment: Adds counterpart line management on payments so users can split amounts, include write-offs, and capture analytic details.
- account.payment: Provides a draft-only action that proposes counterpart lines by scanning outstanding partner invoices ordered by due date and matching payment amounts.
- account.payment: Offers a draft-only action to clear all counterpart lines when users need to start the distribution from scratch.
- account.payment: Generates journal entries from counterpart lines when posting payments, including creation of write-off lines and removal of zero-amount lines.
- account.payment: Checks that a write-off account is defined on either the payment or the relevant lines before allowing posting when lines are marked fully paid.
- account.payment: Automatically reconciles journal items from counterpart lines with their matched invoices after posting.
- account.payment.counterpart.line: Computes residual balances, currency conversions, and write-off amounts for each counterpart line based on the related payment and journal item.
- account.payment.counterpart.line: Auto-populates the move, account, partner, and amount when users pick an open journal item, and prevents allocating more than the residual balance.
- account.move.line: Stores a link back to the originating counterpart line for traceability of posted journal items.