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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0042047
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorhave not tried2019-10-16 18:182019-11-07 18:54
ReportermalsasuaView Statuspublic 
Assigned Torqueralta 
PrioritynormalResolutionfixedFixed in VersionRR20Q1
StatusclosedFix in branchFixed in SCM revision83314167f747
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0042047: wrong discount amount using "User Defined Amount" discount

Descriptionusing the old discount engine, there are rounding problems applying "User Defined Amount" discount
Steps To Reproduce[BO]
. Preferences -> Web POS Use advanced discounts engine -> N
. Product -> p1 -> price: 4.90
. Discount and Promotions:
 -> name: d1
 -> type: User Defined amount
 -> allow multiple instances per line: true
(see screenshot)

[POS]
. add new line: p1-> qty=4
. apply discount d1-> amount 4.90
current status -> total ticket 14.7 -> OK
. apply discount d1-> amount 4.90
current status -> total ticket 9.8 -> OK
. apply discount d1-> amount 4.90
current status -> total ticket 4.9 -> OK
. apply discount d1-> amount 4.90
current status -> total ticket 0.02 -> KO
(see screenshot)
TagsNo tags attached.
Attached Filespng file icon discountConfig.png [^] (160,450 bytes) 2019-10-16 18:19


png file icon pos.png [^] (160,426 bytes) 2019-10-16 18:20

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0115128)
malsasua (developer)
2019-10-16 18:19

it is not reproducible using the new discount engine
(0115394)
hgbot (developer)
2019-11-04 21:07

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 83314167f747bc8ad5ea64d1d5ef3bc79aa5752b
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Sat Oct 26 08:02:25 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/83314167f747bc8ad5ea64d1d5ef3bc79aa5752b [^]

Fixed issue 42047: wrong discount amount using "User Defined Amount" discount

- Changed the rounding method to obtain the correct currentDiscountedLinePrice
value

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0115395)
hgbot (developer)
2019-11-04 21:08

Repository: tools/automation/pi-mobile
Changeset: 20f875167e91f904a5733202a4a10b5d89b2e0cc
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Mon Oct 28 17:13:48 2019 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/20f875167e91f904a5733202a4a10b5d89b2e0cc [^]

Related to issue 42047: Changed I32674_VerifyDiscountOnReloadTicket and
I32699_VerifyFirmQuotationIssue test case

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I32674_VerifyDiscountOnReloadTicket.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I32699_VerifyFirmQuotationIssue.java
---

- Issue History
Date Modified Username Field Change
2019-10-16 18:18 malsasua New Issue
2019-10-16 18:18 malsasua Assigned To => Retail
2019-10-16 18:18 malsasua Resolution time => 1573081200
2019-10-16 18:18 malsasua Triggers an Emergency Pack => No
2019-10-16 18:19 malsasua Note Added: 0115128
2019-10-16 18:19 malsasua File Added: discountConfig.png
2019-10-16 18:20 malsasua File Added: pos.png
2019-10-17 14:47 rqueralta Assigned To Retail => rqueralta
2019-11-04 21:07 hgbot Checkin
2019-11-04 21:07 hgbot Note Added: 0115394
2019-11-04 21:07 hgbot Status new => resolved
2019-11-04 21:07 hgbot Resolution open => fixed
2019-11-04 21:07 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/83314167f747bc8ad5ea64d1d5ef3bc79aa5752b [^]
2019-11-04 21:08 hgbot Checkin
2019-11-04 21:08 hgbot Note Added: 0115395
2019-11-07 18:54 marvintm Review Assigned To => marvintm
2019-11-07 18:54 marvintm Status resolved => closed
2019-11-07 18:54 marvintm Fixed in Version => RR20Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker