Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0057998
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 07. Sales managementminoralways2025-02-14 19:542025-02-18 10:50
ReportersofidossantView Statuspublic 
Assigned ToSathishkumar 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0057998: Different discount in sales order (POS2 and BackOffice)

DescriptionWhen 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 ReproduceGo 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 SolutionJava : 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);
TagsNo tags attached.
Attached Filespng file icon ArturoVentaPOS2.png [^] (150,787 bytes) 2025-02-14 19:54

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(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 [^]

- 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker