agreement_rebate
Extends agreements to compute and settle rebates based on invoiced transactions.
Key Features
- agreement: Enables agreements to be marked as rebate-based with configurable global, line, and section discount strategies plus optional additional consumption adjustments.
- agreement.rebate.line: Supports defining rebate lines that filter targeted products by variant, template, category, named condition, or custom domain and assign dedicated discounts.
- agreement.rebate.condition: Allows definition of reusable domain expressions referenced by rebate lines for advanced targeting.
- agreement.rebate.section: Lets agreements define amount-based sections that drive percentage rebates for total or prorated calculations.
- agreement.rebate.settlement: Aggregates eligible invoice activity into sequenced settlement records that track partner totals and provide actions and invoice creation with reversal-safe grouping.
- agreement.rebate.settlement.line: Stores per-agreement settlement detail with rebate computations, target domains, and invoice status tracking linked to move lines.
- account.move.line: Links invoice lines to rebate settlement lines and appends the settlement period to the line description when applicable.
- agreement.invoice.create.wiz: Provides a wizard to batch create rebate invoices from settlements with date filters, grouping options, and safeguards against duplicate move types.
- agreement.settlement.create.wiz: Offers a wizard to compute settlement lines from invoice reports, applying agreement filters, partner domains, and rebate logic including additional consumption.
- agreement.type: Adds a rebate flag to agreement types so settlement and invoicing tools can filter eligible configurations.