MODULES / OPERATIONS
Sales Global Discount
Apply an order-wide percentage or fixed discount to quotations, sales orders and customer invoices, preserving existing line discounts.
Overview
| Module id | ask_sale_global_discount |
|---|---|
| Version | 1.0.0 |
| Who uses it | Anyone who uses the screens listed below. |
| Installed | On demand, from Settings → Modules. Anything it needs is installed with it. |
How it links to other modules
- Needs: Invoicing
- Works better with: no other module in particular
- Needed by: no other module
A module that is needed cannot be turned off while the module that needs it is on.
Details
Sales Global Discount
Adapted from Sparkosol's Odoo 18 sale_discount_total addon. It applies a document-wide percentage or fixed discount to ASKERP quotations, sales orders and customer invoices while retaining the existing Decimal-based line/tax/posting pipeline.
The entered discount is proportionally represented by the existing four-decimal line discount rates. Fixed discounts are allocated over the post-line-discount line base, then tax is recalculated from the saved rates. They are therefore rounded to the precision supported by those rates; the interface previews the resulting saved total. Existing posting, approvals, invoice immutability and ledger logic remain authoritative.
The Odoo addon also adds a separate sales discount-approval policy and replaces parts of Odoo's amount computation. That custom approval policy is not ported: ASKERP's bounded approval engine and sales-order policy must remain explicit, and its accounting engine must not be replaced.