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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0042286
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Discounts and Promotionsmajoralways2019-11-15 10:082019-12-02 09:00
Reportersamuel_nicuesaView Statuspublic 
Assigned Torqueralta 
PriorityhighResolutionfixedFixed in VersionRR20Q1
StatusclosedFix in branchFixed in SCM revision7cd4c382c64d
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toguilleaer
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0042286: Javascript error using Buy X pay Y of different product discount

DescriptionJavascript error using Buy X pay Y of different product discount and Distribute Between Lines flag is active.

The Old discount engine should be active.

Web POS Use advanced discounts engine = true;
Steps To Reproduce[BO]
-Configure the preference Web POS Use advanced discounts engine = N
-Configure Discount Buy X pay Y of different product
- Distribute Between Lines = active

[POS]
-Add some promotion product, the promotion will be added in the ticket.
-Add a MANUAL discount to the ticket : disc5_var_perc -5%
-You will see a Javascript error, It is happening because the amt for the first promotion is undefined.
TagsNo tags attached.
Attached Filespng file icon 42286_JSError.png [^] (233,015 bytes) 2019-11-15 10:12


png file icon 42286_amtValue.png [^] (95,915 bytes) 2019-11-15 10:12

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0115780)
hgbot (developer)
2019-11-23 14:33

Repository: erp/pmods/org.openbravo.retail.discounts
Changeset: 7cd4c382c64d3f316faeaaaf2da1ab22e36400df
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Tue Nov 19 22:14:57 2019 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/7cd4c382c64d3f316faeaaaf2da1ab22e36400df [^]

Fixed issue 42286: Javascript error using Buy X pay Y of different product discount

- Take into account the actualAmt value to prevent errors when the amt value is
undefined

---
M web/org.openbravo.retail.discounts/js/promotion-manual.js
---

- Issue History
Date Modified Username Field Change
2019-11-15 10:08 samuel_nicuesa New Issue
2019-11-15 10:08 samuel_nicuesa Assigned To => Retail
2019-11-15 10:08 samuel_nicuesa Resolution time => 1575586800
2019-11-15 10:08 samuel_nicuesa Triggers an Emergency Pack => No
2019-11-15 10:12 samuel_nicuesa File Added: 42286_JSError.png
2019-11-15 10:12 samuel_nicuesa File Added: 42286_amtValue.png
2019-11-18 15:06 rqueralta Assigned To Retail => rqueralta
2019-11-18 15:06 rqueralta Status new => scheduled
2019-11-23 14:33 hgbot Checkin
2019-11-23 14:33 hgbot Note Added: 0115780
2019-11-23 14:33 hgbot Status scheduled => resolved
2019-11-23 14:33 hgbot Resolution open => fixed
2019-11-23 14:33 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/7cd4c382c64d3f316faeaaaf2da1ab22e36400df [^]
2019-12-02 09:00 guilleaer Review Assigned To => guilleaer
2019-12-02 09:00 guilleaer Status resolved => closed
2019-12-02 09:00 guilleaer Fixed in Version => RR20Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker