Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034458Retail ModulesWeb POSpublic2016-11-10 08:542017-03-07 17:22
malsasua 
migueldejuana 
normalmajoralways
closedfixed 
20Community Appliance
 
RR17Q1 
marvintm
No
0034458: Error loading masterdata product, when a generic product is in more than one pricelist
when a generic product is included in more than one pricelist, when the masterdata of entity product is loaded in the terminal, the same product is returned more than one time by the query, and error is returned:

OB.Dal.insertData: model insert 'Product'; SQLError: code: 6, message: could not execute statement due to a constaint failure (19 UNIQUE constraint failed: m_product.m_product_id);
in backoffice
 . go to product window, to record: Thermal t-shirt (generic)
   . go to tab price: create two new records:
         pricelist: The White Valley Group Sale Price List (Opening Store)
         pricelist: The White Valley Group Sale Price List Version
(see attachment)

in terminal
 . do login
check console errors
     
    
No tags attached.
png prod_window.png (60,228) 2016-11-10 08:54
https://issues.openbravo.com/file_download.php?file_id=10031&type=bug
png
Issue History
2016-11-10 08:54malsasuaNew Issue
2016-11-10 08:54malsasuaAssigned To => Retail
2016-11-10 08:54malsasuaFile Added: prod_window.png
2016-11-10 08:54malsasuaResolution time => 1480374000
2016-11-10 08:54malsasuaTriggers an Emergency Pack => No
2016-11-30 08:47hgbotCheckin
2016-11-30 08:47hgbotNote Added: 0091914
2016-11-30 08:47hgbotStatusnew => resolved
2016-11-30 08:47hgbotResolutionopen => fixed
2016-11-30 08:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9155193cb91c5e559c07d0675f479a4ad04e7a16 [^]
2016-11-30 10:13migueldejuanaAssigned ToRetail => migueldejuana
2016-12-05 09:36marvintmReview Assigned To => marvintm
2016-12-05 09:36marvintmStatusresolved => closed
2016-12-05 09:36marvintmFixed in Version => RR17Q1
2017-03-07 17:22PracticsIssue Monitored: Practics

Notes
(0091914)
hgbot   
2016-11-30 08:47   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 9155193cb91c5e559c07d0675f479a4ad04e7a16
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Tue Nov 29 17:06:51 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9155193cb91c5e559c07d0675f479a4ad04e7a16 [^]

Fixed issue 0034458: Error loading masterdata product, when a generic product is in more than one pricelist

- Add also priceListVersion filter for generic products

---
M src/org/openbravo/retail/posterminal/master/Product.java
---