Loyalty Points rounding options
by CLuedoo https://www.cluedoo.com/shop/licclusetssc0051-loyalty-points-rounding-options-7041$ 99.09
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 243 |
| Technical Name |
cds_loyalty_point_rounding |
| License | OPL-1 |
| Website | https://www.cluedoo.com/shop/licclusetssc0051-loyalty-points-rounding-options-7041 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 243 |
| Technical Name |
cds_loyalty_point_rounding |
| License | OPL-1 |
| Website | https://www.cluedoo.com/shop/licclusetssc0051-loyalty-points-rounding-options-7041 |
ODOO'S FUNCTION
In Odoo, loyalty points can include decimal values, meaning points are not automatically rounded.
CLUEDOO'S FUNCTION
CLuedoo adds a loyalty point rounding option in the Loyalty Program settings, allowing users to choose between Normal Rounding , Always Round Up , or Always Round Down for point calculation.
|
1. Go to Discount & Loyalty and create a new program with Program Type = Loyalty Cards You will see 2 added fields:
|
|
|
2. Open the Conditional Rules and set up a rule e.g., Customers will gain $0.02 per $ spent on each order |
|
|
3. Create a Sales Order CASE 1: POUNT ROUNDING = EMPTYThe Loyalty Points granted will follow ODS, regardless of the Rounding Precision
e.g., the default decimal places of Odoo is 2, then even when you set the Rounding Precision to 0, the Loyalty Points are still rounded to 2 decimal places |
Result
|
CASE 2: POINT ROUNDING = ALWAYS ROUND UPBased on your Rounding Precision
e.g., Rounding Precision = 0, meaning round up to the next whole number
Loyalty Points 2.88 → 3
|
Result
|
CASE 3: POINT ROUNDING = ALWAYS ROUND DOWNBased on your Rounding Precision
e.g., Rounding Precision = 0, meaning round
down to the nearest whole number
Loyalty Points 2.88 → 2
|
Result
|
CASE 4: POINT ROUNDING = NORMAL ROUNDINGBased on your Rounding Precision
e.g., Rounding Precision = 1, meaning round to the
nearest value
based on standard mathematical rules - not always up or always down
Loyalty Points 2.88 → 2.9
Loyalty Points 1.42 → 1.4 |
Result
|
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module