Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0057998 | Openbravo ERP | 07. Sales management | public | 2025-02-14 19:54 | 2025-02-18 10:50 |
Reporter | sofidossant | ||||
Assigned To | Sathishkumar | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | pi | ||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0057998: Different discount in sales order (POS2 and BackOffice) | ||||
Description | When i did a sales order in POS2 i dont have any discount but when i did the same sale order with the same price list and different organization i have a discount in the line | ||||
Steps To Reproduce | Go to POS2 and make a sale order with Arturo and add a product for example "Avalanche transceiver" See the order, the discount in the line is 0 Go to Back office and make a sale order with the same B.p and the same product "Avalanche transceiver" . I use the organization The White Valley Spain S.A but the same price list that i use in sale order POS2 See the sale order and the discount in the line is different that 0 | ||||
Proposed Solution | Java : SL_Order_Product // Discount BigDecimal discount = BigDecimal.ZERO; BigDecimal price = isTaxIncludedPriceList ? grossPriceList : netPriceList; BigDecimal priceToSubtract = isTaxIncludedPriceList ? grossBaseUnitPrice : priceStd; if (price.compareTo(BigDecimal.ZERO) != 0) { discount = price.subtract(priceToSubtract) .multiply(new BigDecimal("100")) .divide(price, 2, RoundingMode.HALF_UP); } info.addResult("inpdiscount", discount); | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=20917&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2025-02-14 19:54 | sofidossant | New Issue | |||
2025-02-14 19:54 | sofidossant | Assigned To | => Triage Omni OMS | ||
2025-02-14 19:54 | sofidossant | Modules | => Core | ||
2025-02-14 19:54 | sofidossant | Triggers an Emergency Pack | => No | ||
2025-02-14 19:54 | sofidossant | File Added: ArturoVentaPOS2.png | |||
2025-02-14 19:57 | sofidossant | Note Added: 0175667 | |||
2025-02-17 11:15 | jonae | Note Added: 0175760 | |||
2025-02-17 12:08 | jonae | Assigned To | Triage Omni OMS => Sathishkumar | ||
2025-02-18 10:50 | hgbot | Note Added: 0175801 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|