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-02-18 10:50 | |||||||
Reporter | sofidossant | View Status | public | |||||||||
Assigned To | Sathishkumar | |||||||||||
Priority | normal | Resolution | open | Fixed in Version | ||||||||
Status | new | 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 | ![]() | |||||||||||
![]() |
|
![]() |
|
(0175667) sofidossant (developer) 2025-02-14 19:57 |
Video Sales order BACK OFFICE : https://drive.google.com/file/d/1tbswiTN37psHwxGOaHBsihDHg9sWTsV_/view?usp=sharing [^] Video Sales Order POS2 : https://drive.google.com/file/d/1St8HKh1EQ8JQOFTVMiP1nd17IEBE8tzI/view?usp=sharing [^] |
(0175760) jonae (developer) 2025-02-17 11:15 |
Jira - https://openbravo.atlassian.net/browse/RM-21266 [^] |
(0175801) hgbot (developer) 2025-02-18 10:50 |
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/85 [^] |
![]() |
|||
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 |
Copyright © 2000 - 2009 MantisBT Group |