Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033755Retail ModulesReturn Receiptpublic2016-08-19 21:472016-08-31 11:26
rbianchini 
ranjith_qualiantech_com 
normalmajorunable to reproduce
closedfixed 
5
RR16Q2.1 
RR16Q4 
guilleaer
OBPS
43013
No
0033755: Sometimes, Returned goods are shipped to an inactive locator
Sometimes, Returned goods are shipped to an inactive locator.

I can't reproduce in a clean environment, but i can provide the client's test environment.

The client has 791 inactive locators in the warehouse and only one active locator.
1 - Log in web pos
2 - Perform a sell
3 - Click on verified return menu and select the ticket created in previous step
4 - select all lines
5 - return the receipt
6 - Go to back end and open goods shipment window
7 - select the shipment associated with the return created in step 5
8 - switch to lines tab and realize that the locator assigned to the lines is an inactive locator
class: POSUtils.java
function: getBinForReturns(OBPOSApplications pOSTerminal)

add a ceck to get an anctive locator:

List<Locator> lstLocators = lstWarehouses.get(0).getLocatorList();

if (lstLocators.size() > 0) {
+ for (Locator locator : lstLocators) {
+ if (locator.isActive()) {
+ return locator;
+ }
- return lstLocators.get(0);
   }
} else {
   throw new OBException("Warehouse" + lstWarehouses.get(0) + " doesn't have bins");
}
No tags attached.
related to defect 0033738 closed ranjith_qualiantech_com [SERQA 1604] Priorities are ignored when selecting a storage bin to deposit returned goods. 
Issue History
2016-08-19 21:47rbianchiniNew Issue
2016-08-19 21:47rbianchiniAssigned To => Retail
2016-08-19 21:47rbianchiniOBNetwork customer => Yes
2016-08-19 21:47rbianchiniSupport ticket => 43013
2016-08-19 21:47rbianchiniResolution time => 1473390000
2016-08-19 21:47rbianchiniTriggers an Emergency Pack => No
2016-08-20 01:25IntegritasIssue Monitored: Integritas
2016-08-23 13:48ranjith_qualiantech_comRelationship addedrelated to 0033738
2016-08-24 10:15ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2016-08-24 10:15ranjith_qualiantech_comStatusnew => scheduled
2016-08-24 10:16ranjith_qualiantech_comNote Added: 0089332
2016-08-24 10:16ranjith_qualiantech_comStatusscheduled => resolved
2016-08-24 10:16ranjith_qualiantech_comResolutionopen => fixed
2016-08-31 11:26guilleaerReview Assigned To => guilleaer
2016-08-31 11:26guilleaerStatusresolved => closed
2016-08-31 11:26guilleaerFixed in Version => RR16Q4

Notes
(0089332)
ranjith_qualiantech_com   
2016-08-24 10:16   
Fixed in the changeset http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/51660f59cd892e33e55fa2eb5b631d0f4d0c6694 [^]