Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0045883 | Retail Modules | Web POS | public | 2021-02-11 10:08 | 2021-02-19 08:01 |
Reporter | malsasua | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR21Q2 | |||
Merge Request Status | approved | ||||
Review Assigned To | |||||
OBNetwork customer | Gold | ||||
Support ticket | 19786 | ||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0045883: External Order Loader: warehouse is not selected following the priority | ||||
Description | In External Order Loader, when the warehouse is not informed in the json, it is calculated in External Order Loader. But the query to get the warehouse is ignoring the priority of warehouses. | ||||
Steps To Reproduce | . change the VallBlanca warehouse configuration as attachment vallblancaWarehouses . load external Order Loader without warehouse selected (json attachment) . the sales order created is with warehouse "Vall Blanca Store Warehouse" and it should be White Valley Spain Distribution Center | ||||
Proposed Solution | change https://gitlab.com/openbravo/devel/pmods/org.openbravo.retail.posterminal/-/blob/master/src/org/openbravo/retail/posterminal/ExternalOrderLoader.java#L1286 [^] by: Warehouse wh = posTerminal.getOrganization().getObretcoMWarehouse(); if (wh == null && !posTerminal.getOrganization().getOrganizationWarehouseList().isEmpty()) { OBQuery<OrgWarehouse> warehouses = OBDal.getInstance() .createQuery(OrgWarehouse.class, " e where e.organization=:org and e.warehouse.active=true order by priority, id"); warehouses.setNamedParameter("org", posTerminal.getOrganization()); List<OrgWarehouse> warehouseList = warehouses.list(); if (warehouseList.size() != 0) { wh = warehouseList.get(0).getWarehouse(); } | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=15313&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=15314&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=15315&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2021-02-11 10:08 | malsasua | New Issue | |||
2021-02-11 10:08 | malsasua | Assigned To | => Retail | ||
2021-02-11 10:08 | malsasua | File Added: vallblancaWarehouses.png | |||
2021-02-11 10:08 | malsasua | OBNetwork customer | => Gold | ||
2021-02-11 10:08 | malsasua | Support ticket | => 19786 | ||
2021-02-11 10:08 | malsasua | Resolution time | => 1614639600 | ||
2021-02-11 10:08 | malsasua | Triggers an Emergency Pack | => No | ||
2021-02-11 10:09 | malsasua | File Added: salesOrder.png | |||
2021-02-11 10:09 | malsasua | File Added: order.json | |||
2021-02-15 05:38 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2021-02-15 12:48 | ranjith_qualiantech_com | Status | new => scheduled | ||
2021-02-17 13:42 | hgbot | Merge Request Status | => open | ||
2021-02-17 13:42 | hgbot | Note Added: 0126140 | |||
2021-02-19 08:01 | hgbot | Merge Request Status | open => approved | ||
2021-02-19 08:01 | hgbot | Note Added: 0126180 | |||
2021-02-19 08:01 | hgbot | Resolution | open => fixed | ||
2021-02-19 08:01 | hgbot | Status | scheduled => closed | ||
2021-02-19 08:01 | hgbot | Fixed in Version | => RR21Q2 | ||
2021-02-19 08:01 | hgbot | Note Added: 0126181 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|