Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0057998 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 07. Sales management | minor | always | 2025-02-14 19:54 | 2025-03-10 10:50 | |||
Reporter | sofidossant | View Status | public | |||||
Assigned To | Sathishkumar | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | pi | SCM revision | ||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
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); | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
|
![]() |
|||
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 | |
2025-03-10 10:50 | hgbot | Resolution | open => fixed |
2025-03-10 10:50 | hgbot | Status | new => closed |
2025-03-10 10:50 | hgbot | Note Added: 0176590 | |
2025-03-10 10:50 | hgbot | Note Added: 0176591 |
Copyright © 2000 - 2009 MantisBT Group |