Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0057672 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
backport | [POS2] POS | major | always | 2025-01-17 06:36 | 2025-01-17 07:55 | |||||||
Reporter | prakashmurugesan88 | View Status | public | |||||||||
Assigned To | prakashmurugesan88 | |||||||||||
Priority | high | Resolution | open | Fixed in Version | ||||||||
Status | scheduled | Fix in branch | Fixed in SCM revision | |||||||||
Projection | none | ETA | none | Target Version | 25Q1 | |||||||
OS | Any | Database | Any | Java version | ||||||||
OS Version | Database version | Ant version | ||||||||||
Product Version | SCM revision | |||||||||||
Review Assigned To | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0057672: Problem with “Maximum discount per role” functionality, does not work correctly. | |||||||||||
Description | We apply the changes but there is an error in the way decimals and rounding are handled, resulting in inconsistencies when validating the maximum discounts allowed. This allows the system to accept final prices that are below the calculated limits for both the Unit Price and the List Price. | |||||||||||
Steps To Reproduce | Navigate to role and configure the detailed actions and the maximum discount as below. In the terminal, add a product and to the line, add a manual discount as below. You can notice following Rounding issue. Initial Context: Product with List Price: 5.90€. Product with Unit Price (price already reduced): 4.90€. Observed Behavior: The system warns that the maximum discount allowed is 16%, based on the Unit Price. Calculated discount: 4.90€ × 0.16 = 0.784€ ≈ 0.78€ (rounding). Expected minimum allowed price: €4.90 - €0.78 = €4.12. However, the POS allows to apply a price of €4.11, which is below the expected limit of €4.12. Extended Case: If the original List Price of €5.90 is considered, a maximum discount of 30% would imply: Minimum price allowed: €5.90 × 0.70 = €4.13. But the system allows applying a discount that results in a final price of 4.11€, equivalent to a discount of 30.33%, exceeding the established limit. | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ||||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0174258) prakashmurugesan88 (developer) 2025-01-17 07:55 |
https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3358 [^] |
Issue History | |||
Date Modified | Username | Field | Change |
2025-01-17 06:36 | prakashmurugesan88 | New Issue | |
2025-01-17 06:36 | prakashmurugesan88 | Assigned To | => prakashmurugesan88 |
2025-01-17 06:36 | prakashmurugesan88 | Triggers an Emergency Pack | => No |
2025-01-17 06:36 | prakashmurugesan88 | Issue generated from | 0057671 |
2025-01-17 06:37 | prakashmurugesan88 | Type | defect => backport |
2025-01-17 06:37 | prakashmurugesan88 | Target Version | => 25Q1 |
2025-01-17 06:38 | prakashmurugesan88 | Status | new => scheduled |
2025-01-17 06:40 | prakashmurugesan88 | Relationship added | blocks 0057671 |
2025-01-17 07:55 | prakashmurugesan88 | Note Added: 0174258 |
Copyright © 2000 - 2009 MantisBT Group |