Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0045525 | Retail Modules | Web POS | public | 2020-11-27 13:42 | 2020-12-15 08:17 | |||||||
Reporter | nicola_uva | |||||||||||
Assigned To | rqueralta | |||||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | pi | |||||||||||
Target Version | pi | Fixed in Version | RR21Q1 | |||||||||
Merge Request Status | approved | |||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | Gold | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | pi | |||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0045525: [SafeBox - Cashup] During processing the cashup an error happen on ProcessCashClose | |||||||||||
Description | During the execution of ProcessCashClose.java a hibernate error happen. Below the piece of code failing if (jsonCashup.has("currentSafeBox")) { String safeBoxSK = jsonCashup.getString("currentSafeBox"); OBCriteria<OBPOSSafeBox> safeBoxCriteria = OBDal.getInstance() .createCriteria(OBPOSSafeBox.class); safeBoxCriteria.add(Restrictions.eq(OBPOSSafeBox.PROPERTY_SEARCHKEY, safeBoxSK)); safeBox = (OBPOSSafeBox) safeBoxCriteria.uniqueResult(); } | |||||||||||
Steps To Reproduce | Create a safebox with search key = 1 for organization A with cash payment method Create a safebox with search key = 1 for organization B with cash payment method Connect to POS on organization A Link the safebox 1 and do a ticket in cash Remove the safebox from the menu and process The cashup go in error while importing POS data with the following error: org.hibernate.NonUniqueResultException: query did not return a unique result: 2 | |||||||||||
Proposed Solution | Put the unicity on (Organization, searchkey) level We also need to ensure that safe boxes are created at store level, otherwise more than one safe box may be visible if we only do the constraint change | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=15134&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2020-11-27 13:42 | nicola_uva | New Issue | ||||||||||
2020-11-27 13:42 | nicola_uva | Assigned To | => Retail | |||||||||
2020-11-27 13:42 | nicola_uva | File Added: errorlog.txt | ||||||||||
2020-11-27 13:42 | nicola_uva | OBNetwork customer | => Gold | |||||||||
2020-11-27 13:42 | nicola_uva | Resolution time | => 1606863600 | |||||||||
2020-11-27 13:42 | nicola_uva | Triggers an Emergency Pack | => No | |||||||||
2020-11-27 13:54 | javietxe | Issue Monitored: javietxe | ||||||||||
2020-11-27 13:55 | javietxe | Resolution time | 1606863600 => 1608246000 | |||||||||
2020-11-27 13:56 | javietxe | Regression introduced in release | => pi | |||||||||
2020-11-27 13:57 | javietxe | Relationship added | caused by 0045157 | |||||||||
2020-12-09 17:02 | rqueralta | Assigned To | Retail => rqueralta | |||||||||
2020-12-14 20:59 | hgbot | Merge Request Status | => open | |||||||||
2020-12-14 20:59 | hgbot | Note Added: 0124812 | ||||||||||
2020-12-15 08:17 | hgbot | Merge Request Status | open => approved | |||||||||
2020-12-15 08:17 | hgbot | Resolution | open => fixed | |||||||||
2020-12-15 08:17 | hgbot | Status | new => closed | |||||||||
2020-12-15 08:17 | hgbot | Fixed in Version | => RR21Q1 | |||||||||
2020-12-15 08:17 | hgbot | Note Added: 0124818 | ||||||||||
2020-12-15 08:17 | hgbot | Note Added: 0124819 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|