Go to file
2026-04-27 14:13:03 +07:00
models refactor: remove redundant accounting logic and configurations for POS loyalty discounts 2026-04-27 14:13:03 +07:00
pos_loyalty_discount_before_tax@d975966b70 feat: Implement and configure loyalty discounts to apply before tax in POS. 2026-03-12 15:57:23 +07:00
static/src/overrides/models feat: Implement and configure loyalty discounts to apply before tax in POS. 2026-03-12 15:57:23 +07:00
__init__.py feat: Adjust loyalty discount calculations to apply before tax and introduce accounting for 100% loyalty discounts. 2026-03-12 08:58:58 +07:00
__manifest__.py refactor: remove redundant accounting logic and configurations for POS loyalty discounts 2026-04-27 14:13:03 +07:00
.gitignore chore: Add .gitignore file to exclude common temporary and system files. 2026-01-20 17:02:21 +07:00
README.md refactor: remove redundant accounting logic and configurations for POS loyalty discounts 2026-04-27 14:13:03 +07:00

POS Loyalty Discount Before Tax

This module modifies the loyalty reward discount calculation in POS to apply discounts before tax calculation and ensures that discount values are displayed as tax-exclusive in both the POS receipt and accounting entries.

Features

  1. Discount Calculation Before Tax: All loyalty rewards are calculated on the tax-exclusive amount rather than the tax-inclusive amount.

  2. Tax-Exclusive Display: Discount values are displayed as tax-exclusive in the POS receipt.

Technical Changes

JavaScript Changes

  • Modified static/src/overrides/models/loyalty.js to calculate discounts on tax-exclusive amounts
  • Ensured discount line values are tax-exclusive for display purposes

Installation

  1. Copy the module to your Odoo addons directory
  2. Update the apps list in Odoo
  3. Install the "POS Loyalty Discount Before Tax" module

Configuration

No additional configuration is required. The module automatically applies the changes to all loyalty programs in POS.

Usage

The module works automatically with all existing loyalty programs. Discounts will be calculated on tax-exclusive amounts and displayed as such in the POS interface and accounting entries.

Compatibility

This module is compatible with Odoo 17 and requires the following modules:

  • point_of_sale
  • pos_loyalty

License

LGPL-3