Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0040275 | Openbravo ERP | 02. Master data management | public | 2019-02-26 16:53 | 2019-03-28 14:56 |
Reporter | Leyre | ||||
Assigned To | markmm82 | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | 3.0PR19Q2 | |||
Merge Request Status | |||||
Review Assigned To | Sandrahuguet | ||||
OBNetwork customer | OBPS | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | 8196 | ||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0040275: Error when calculating the discount field in the lines of a Sales Order | ||||
Description | Error when calculating the discount field in the lines of a Sales Order | ||||
Steps To Reproduce | BACKEND: 1. Create a new discount: Discount/Promotion Type = Price Adjustment Discount % = 50 Included Business Partners = Only those defined Business Partner = defined one 2. Modify the price list of a product, for example = 35.05 3. Modify the price list of another product, for example = 35.06 4. Create a new sales order, with the Partner defined previously 5. Add two lines to the sales order, with both products. 6. Verify in the lines, that, in the case of the product = 35.05, a discount of -0.03 is applied to the line. PROBLEM: PriceAdjustment.java class -> calculatePriceStd method First calculated 35.05 / 2 = 17.525 -> precision 2 -> 17.53 Secondly calculate 17.53 / 2 = 35.06 and use this value to calculate the final discount: 35.05-35.06 = -0.01 -> -0.01 * 100 = -1 -> -1 / 35.05 = - 0.028 -> precision 2 -> -0.03 | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2019-02-26 16:53 | Leyre | New Issue | |||
2019-02-26 16:53 | Leyre | Assigned To | => Triage Finance | ||
2019-02-26 16:53 | Leyre | OBNetwork customer | => OBPS | ||
2019-02-26 16:53 | Leyre | Modules | => Core | ||
2019-02-26 16:53 | Leyre | Support ticket | => 8196 | ||
2019-02-26 16:53 | Leyre | Resolution time | => 1552950000 | ||
2019-02-26 16:53 | Leyre | Triggers an Emergency Pack | => No | ||
2019-02-26 17:02 | Practics | Issue Monitored: Practics | |||
2019-02-26 17:33 | Sandrahuguet | Assigned To | Triage Finance => markmm82 | ||
2019-02-27 03:00 | markmm82 | Status | new => scheduled | ||
2019-02-27 17:03 | Leyre | Summary | Error when calculating the field "amount"discount => Error when calculating the discount field in the lines of a Sales Order | ||
2019-02-27 17:03 | Leyre | Description Updated | bug_revision_view_page.php?rev_id=18363#r18363 | ||
2019-02-27 17:03 | Leyre | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=18365#r18365 | ||
2019-02-27 17:03 | Leyre | Proposed Solution updated | |||
2019-02-27 20:26 | markmm82 | Note Added: 0110112 | |||
2019-03-11 15:44 | hgbot | Checkin | |||
2019-03-11 15:44 | hgbot | Note Added: 0110354 | |||
2019-03-11 15:44 | hgbot | Status | scheduled => resolved | ||
2019-03-11 15:44 | hgbot | Resolution | open => fixed | ||
2019-03-11 15:44 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/1d09b6a639cf80ebec8b69195de78233951d047a [^] | ||
2019-03-11 15:44 | Sandrahuguet | Review Assigned To | => Sandrahuguet | ||
2019-03-11 15:44 | Sandrahuguet | Note Added: 0110355 | |||
2019-03-11 15:44 | Sandrahuguet | Status | resolved => closed | ||
2019-03-11 15:44 | Sandrahuguet | Fixed in Version | => 3.0PR19Q2 | ||
2019-03-28 14:56 | hudsonbot | Checkin | |||
2019-03-28 14:56 | hudsonbot | Note Added: 0110860 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|