Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0036940 | Retail Modules | Web POS | public | 2017-09-12 12:56 | 2017-10-31 09:19 | |||||||
Reporter | egoitz | |||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | RR17Q3.1 | Fixed in Version | RR17Q3.1 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | marvintm | |||||||||||
OBNetwork customer | OBPS | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0036940: Unneeded query executed on the orderloader process | |||||||||||
Description | During the orderloader process a query to set one attributeset is executed when there is not stock and the product has an attribute set defined. It is setting on the new shipment line the same attributesetvalue than in the last one, what has not sense. | |||||||||||
Steps To Reproduce | -Define a product with an attribute set. -Create on the terminal a ticket with that prodduct. -Check that a query on the m_inoutline table is executed. The query: https://docs.google.com/document/d/1pWsaB-yj2pzBWU3v9R0nGYNpv4k1iXZXmCw6qGJ_kh0/edit [^] | |||||||||||
Proposed Solution | REview the following code on the orderload process: [12:48:20] Egoitz: if (!foundStockProposed && orderLine.getProduct().getAttributeSet() != null) { // M_GetStock couldn't find any valid stock, and the product has an attribute set. We // will // attempt to find an old transaction for this product, and get the attribute values // from // there OBCriteria<ShipmentInOutLine> oldLines = OBDal.getInstance().createCriteria( ShipmentInOutLine.class); oldLines .add(Restrictions.eq(ShipmentInOutLine.PROPERTY_PRODUCT, orderLine.getProduct())); oldLines.setMaxResults(1); oldLines.addOrderBy(ShipmentInOutLine.PROPERTY_CREATIONDATE, false); List<ShipmentInOutLine> oldLine = oldLines.list(); if (oldLine.size() > 0) { oldAttributeSetValues = oldLine.get(0).getAttributeSetValue(); } } | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2017-09-25 11:33 | marvintm | Type | defect => backport | |||||||||
2017-09-25 11:33 | marvintm | Target Version | => RR17Q3.1 | |||||||||
2017-09-26 08:15 | hgbot | Checkin | ||||||||||
2017-09-26 08:15 | hgbot | Note Added: 0099569 | ||||||||||
2017-09-26 08:15 | hgbot | Status | scheduled => resolved | |||||||||
2017-09-26 08:15 | hgbot | Resolution | open => fixed | |||||||||
2017-09-26 08:15 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1aa6dec4e0ad4c1354194ef1796e5d195017920c [^] => http://code.openbravo.com/retail/backports/3.0RR17Q3.1/org.openbravo.retail.posterminal/rev/dfd342f5149381a125487d83861de934e0807140 [^] | |||||||||
2017-10-31 09:19 | marvintm | Status | resolved => closed | |||||||||
2017-10-31 09:19 | marvintm | Fixed in Version | => RR17Q3.1 |
Notes | |||||
|
|||||
|
|