Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033180Retail ModulesWeb POSpublic2016-06-07 18:162018-02-28 18:23
shuehner 
Sandrahuguet 
normalminorhave not tried
closedfixed 
5
 
RR18Q2 
marvintm
No
0033180: OrderLoader.createShipment lines trigger read to m_product which should be avoided if possible
              boolean useSingleBin = foundSingleBin != null && orderLine.getAttributeSetValue() == null
          && orderLine.getProduct().getAttributeSet() == null
          && orderLine.getWarehouseRule() == null
          && (DalUtil.getId(order.getWarehouse()).equals(DalUtil.getId(warehouse)));

This code triggers read of m_product via:
orderLine.getProduct().getAttributeSet()

That should be optimized away if that is possible.

a.) Move to end of the if-condition to only be used when all other previous parts evaluate to true
b.) Recheck if that condition is really required functionally.
-
Performance
Issue History
2016-06-07 18:16shuehnerNew Issue
2016-06-07 18:16shuehnerAssigned To => Retail
2016-06-07 18:16shuehnerTriggers an Emergency Pack => No
2016-06-07 18:16shuehnerTag Attached: Performance
2018-02-26 08:33SandrahuguetAssigned ToRetail => Sandrahuguet
2018-02-26 08:40hgbotCheckin
2018-02-26 08:40hgbotNote Added: 0102830
2018-02-26 08:40hgbotStatusnew => resolved
2018-02-26 08:40hgbotResolutionopen => fixed
2018-02-26 08:40hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6810b8999be9cdcfc6fd9eee6803d8c6b9ade462 [^]
2018-02-27 16:11SandrahuguetReview Assigned To => marvintm
2018-02-28 18:23marvintmStatusresolved => closed
2018-02-28 18:23marvintmFixed in Version => RR18Q2

Notes
(0102830)
hgbot   
2018-02-26 08:40   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 6810b8999be9cdcfc6fd9eee6803d8c6b9ade462
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Wed Feb 07 17:51:53 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6810b8999be9cdcfc6fd9eee6803d8c6b9ade462 [^]

Fixed issue 33180 Move getProduct().getAttributeSet() to last condition

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
---