Skip to main content

Apply general discount on each line

Project description

Odoo Community Association

POS Discount Per Line

Beta License: AGPL-3 sygel-technology/sy-pos

This module allows to set a general discount in all the POS lines.

Unlike Odoo’s default global POS discount, which applies to the entire order, this discount is applied individually to each line item.

This module also offers the option to set two types of discount operations:

  • Sum: The global discount percentage will be added to the discount percentage of each line item.

  • Replace: The discount percentage of each line item will be the global discount percentage applied.

Table of contents

Configuration

To configure this module, you need to:

  1. Go to Point of Sale / Configuration / Settings. Select your Point of Sale to configure

  2. Search the “Discount per Line” option. Select your desired default method, ‘sum’ or ‘replace’

Usage

To use this module, you need to:

  1. Go to “Point of Sale” and open a POS session

  2. Select some products to be selled

  3. Click on Actions / Discount Per Line

  4. Select your global discont and your method. Click on “Ok”

  5. The discount would be applied to all the products you selected to be selled, in their respective lines.

Known issues / Roadmap

  • Unit tests or tours to test the JS code should be added in the next module versions

  • In the NumberPopup xml asset, the t-att-selected attribute, that was used in v15 to determine the default option, has been removed in v18 because it was giving problems. The problem consisted that, when clicking on a number button of the NumberPopup, the discount option was resetting to the default, ignoring the user changes. To solve this, the select options have been duplicated with a different order and a conditional, Odoo takes the first option as the default one. This would be nice to be solved in future versions, although it is not essential.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Sygel

Contributors

  • Sygel:

    • Manuel Regidor

    • Alberto Martínez

    • Valentin Vinagre

    • Harald Panten

Maintainers

This module is part of the sygel-technology/sy-pos project on GitHub.

You are welcome to contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_pos_discount_per_line-18.0.1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_pos_discount_per_line-18.0.1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ead4c11656ddd7287b654ad242971f5d24062e18db83ca8b09415dfd0cc3c7e2
MD5 11dd039ff7a65f80f60a2f2fbc267c6e
BLAKE2b-256 7f91edb9015602bf121e3674469e3ee02e9fd5a3c7f9d6a9a9bbebbca912dac5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page