account_global_discount
Allows applying configurable global discounts to customer and vendor invoices with consistent accounting and reporting adjustments.
Key Features
- account.move: Adds automatic selection of partner-specific global discounts and recomputes untaxed and discount totals on invoices.
- account.move: Generates per-tax global discount breakdowns and corresponding journal items so discounted bases flow into the move lines.
- account.move: Validates that invoices using global discounts only contain compatible taxed lines before posting to prevent inconsistent entries.
- account.invoice.global.discount: Records the discount percentage, bases, amounts, accounts, taxes, and analytic links for each applied global discount.
- account.move.line: Links journal items to their originating global discount and preserves the untaxed amount before discounts for traceability.
- global.discount: Requires setting the accounting and optional analytic accounts on each global discount and propagates them into invoices.
- invoice reports: Shows the subtotal before discounts and the aggregated global discount amount on the printed invoice totals.
- account.invoice.report: Includes global discount journal items in the invoicing analysis by adapting the report SQL filter.