Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044504Retail ModulesWeb POSpublic2020-06-26 17:472021-08-23 09:29
rafaroda 
rafaroda 
normalmajoralways
closedunable to reproduce 
5
 
 
No
0044504: Scan logic is not following the same logic for Layaways than Open Receipts
In a project we are having layaways being sent by an external system that are integrated in the backoffice via the Order Loader.

We have extended the Order Loader to accept the same document number of Layaway: this means, if we receive a layaway with documentNo = 123 twice, the first order goes into status = Closed (from Booked), and the second Order goes into status = Booked

In Menu > Open Receipts, we can search for the documentNo = 123 and only shows the Booked status one: OK

But when we scan, we have result "123 can't be found": KO
* In Backoffice (via database), make 2 layaways with the same documentNo = 123, one in status Closed and the second in status Booked
* In WebPOS: Menu > Open Receipts: you will find the documentNo = 123, OK
* In WebPOS, Scan 123: you will get result "123 can't be found"
Scan when searching for orders whould follow the same logic as Menu > Open Receipts: which is, excluding the documents in status = Closed
NOR
Issue History
2020-06-26 17:47rafarodaNew Issue
2020-06-26 17:47rafarodaAssigned To => Retail
2020-06-26 17:47rafarodaResolution time => 1594332000
2020-06-26 17:47rafarodaTriggers an Emergency Pack => No
2020-06-26 17:47rafarodaTag Attached: NOR
2020-07-05 18:02ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-07-07 10:01marvintmNote Added: 0121290
2020-07-07 10:01marvintmAssigned Toranjith_qualiantech_com => rafaroda
2020-07-07 10:01marvintmStatusnew => feedback
2021-08-23 09:29marvintmStatusfeedback => closed
2021-08-23 09:29marvintmResolutionopen => unable to reproduce

Notes
(0121290)
marvintm   
2020-07-07 10:01   
We cannot reproduce the issue. We have verified that the ScanReceipt module uses the PaidReceiptsFilter class to load the order, and this class is currently adding the filter to remove the "closed" orders from the result.