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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0031585
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Discounts and Promotionsmajoralways2015-11-25 18:312016-02-05 16:08
ReportermalsasuaView Statuspublic 
Assigned Tojorge-garcia 
PriorityhighResolutionfixedFixed in VersionRR16Q2
StatusclosedFix in branchFixed in SCM revision35b5fee77c43
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_18
OS VersionCommunity ApplianceDatabase version8.3.9Ant version1.7.1
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0031585: when more than 10 discount combos are added to the receipt, chrome crash

Descriptionwith the combos module, if you create a receipt with more than 10 discount combos the chrome crash
Steps To Reproduce. install combo discounts module (org.openbravo.retail.discounts.combo)
. install best deal module (org.openbravo.retail.discounts.bestdeal)
in backoffice:
 . create thtree new discounts type combo:
  discount: combo1
   . Family: F1
             qty 2
             prods:
                    p1
                    p2

  discount: combo2
   . Family: F2
             qty 2
             prods:
                    p3
                    p4
...
  discount: combo 10
   . Family: F10
             qty 2
             prods: p5
                    p6
. enable best deal case (see http://wiki.openbravo.com/wiki/Retail:Promotions_Best_Deal_Case [^] [^])
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0031073 closedRetail when several combos are added to the receipt, chrome crash 
related to defect 0027960 closedmarvintm The generated js file containint static resouces has been built with the js of the erp instead of the js for WebPOs 

-  Notes
(0083928)
hgbot (developer)
2016-02-04 15:59

Repository: erp/pmods/org.openbravo.retail.discounts.bestdeal
Changeset: 35b5fee77c43ea94dd949db47b141023fc4a8f0a
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu Feb 04 15:50:18 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bestdeal/rev/35b5fee77c43ea94dd949db47b141023fc4a8f0a [^]

Fixed issue 31585: when more than 10 discount combos are added to the
receipt, chrome crash

The problem were in two parts. The first part is the quantity of products in the
receipt, and the second part is the quantity of possible promotions that can be
applied to the products. This two parts causes that Chrome crash ( Chrome crash
beetween 3 and 4 million of possible combinations for 42 products).

The solution is to reduce that number, so now, a new constant is defined. The
constant is a calculation of number of possible combinations multiply by the
number of products in the receipt. Rigth now, to be able to use this
functionality in a tablet, the maximun number is 100.000 combinations for 100
products defined in the receipt.

---
M web/org.openbravo.retail.discounts.bestdeal/source/discounts-best-deal-case.js
---

- Issue History
Date Modified Username Field Change
2015-11-25 18:31 malsasua New Issue
2015-11-25 18:31 malsasua Assigned To => Retail
2015-11-25 18:31 malsasua Resolution time => 1451775600
2015-11-25 18:31 malsasua Triggers an Emergency Pack => No
2015-11-25 18:31 malsasua Relationship added related to 0031073
2015-11-25 18:32 malsasua Relationship added related to 0027960
2015-11-25 18:40 malsasua Note Added: 0082350
2015-11-26 10:02 Orekaria Status new => acknowledged
2015-12-02 19:50 malsasua Resolution time 1451775600 => 1449442800
2015-12-30 16:28 Orekaria Note Deleted: 0082350
2016-01-29 09:20 jorge-garcia Assigned To Retail => jorge-garcia
2016-01-29 09:20 jorge-garcia Status acknowledged => scheduled
2016-02-04 15:59 hgbot Checkin
2016-02-04 15:59 hgbot Note Added: 0083928
2016-02-04 15:59 hgbot Status scheduled => resolved
2016-02-04 15:59 hgbot Resolution open => fixed
2016-02-04 15:59 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bestdeal/rev/35b5fee77c43ea94dd949db47b141023fc4a8f0a [^]
2016-02-05 16:08 marvintm Review Assigned To => marvintm
2016-02-05 16:08 marvintm Status resolved => closed
2016-02-05 16:08 marvintm Fixed in Version => RR16Q2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker