Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037527Retail ModulesWeb POSpublic2017-12-20 16:352018-08-01 09:14
umartirena 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR18Q2 
marvintm
No
0037527: POSUtils.getLastDocumentNumberForPOS() function takes into account correctly imported errors while importing when it should not
POSUtils.getLastDocumentNumberForPOS() function takes into account correctly imported errors while importing when it should not
Having an "Imported Correctly" record in "Errors while importing" window of type "Order", if the Web POS is loaded the following query takes into account the previous record when it should not:

    OBCriteria<OBPOSErrors> errorCrit = OBDal.getInstance().createCriteria(OBPOSErrors.class);
    errorCrit.add(Restrictions.eq(OBPOSErrors.PROPERTY_OBPOSAPPLICATIONS, terminal));
    errorCrit.add(Restrictions.eq(OBPOSErrors.PROPERTY_TYPEOFDATA, "Order"));
    List<OBPOSErrors> errors = errorCrit.list();
Filter the following query by records not in "Imported Correctly" status:

    OBCriteria<OBPOSErrors> errorCrit = OBDal.getInstance().createCriteria(OBPOSErrors.class);
    errorCrit.add(Restrictions.eq(OBPOSErrors.PROPERTY_OBPOSAPPLICATIONS, terminal));
    errorCrit.add(Restrictions.eq(OBPOSErrors.PROPERTY_TYPEOFDATA, "Order"));
    List<OBPOSErrors> errors = errorCrit.list();
Performance
Issue History
2017-12-20 16:35umartirenaNew Issue
2017-12-20 16:35umartirenaAssigned To => Retail
2017-12-20 16:35umartirenaTriggers an Emergency Pack => No
2017-12-20 16:49marvintmResolution time => 1515625200
2017-12-28 08:03ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2018-01-05 12:46hgbotCheckin
2018-01-05 12:46hgbotNote Added: 0101589
2018-01-05 12:46hgbotStatusnew => resolved
2018-01-05 12:46hgbotResolutionopen => fixed
2018-01-05 12:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/fca923eb6e652df30493f5f5fbc8b5ba86c89c66 [^]
2018-01-11 17:51marvintmReview Assigned To => marvintm
2018-01-11 17:51marvintmStatusresolved => closed
2018-01-11 17:51marvintmFixed in Version => RR18Q2
2018-08-01 09:14alostaleTag Attached: Performance

Notes
(0101589)
hgbot   
2018-01-05 12:46   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: fca923eb6e652df30493f5f5fbc8b5ba86c89c66
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Jan 05 17:16:12 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/fca923eb6e652df30493f5f5fbc8b5ba86c89c66 [^]

Fixed issue 37527 : Get documentno from import entry error with error status

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