Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0045883 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | major | always | 2021-02-11 10:08 | 2021-02-19 08:01 | |||
Reporter | malsasua | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR21Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
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(); } | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() ![]() ![]() | |||||||
![]() |
|
![]() |
|
(0126140) hgbot (developer) 2021-02-17 13:42 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/305 [^] |
(0126180) hgbot (developer) 2021-02-19 08:01 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/305 [^] |
(0126181) hgbot (developer) 2021-02-19 08:01 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^] Changeset: 704d6db0ef81053ad6223c2e7d37478f7044e3cb Author: Ranjith S R <ranjith@qualiantech.com> Date: 2021-02-19T07:01:40+00:00 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/704d6db0ef81053ad6223c2e7d37478f7044e3cb [^] Fixed ISSUE-45883: Updated Logic to get Org Warehouse in EOL * Warehouse for EOL should be fetched from Org Warehouse based on active status and priority --- M src/org/openbravo/retail/posterminal/ExternalOrderLoader.java --- |
![]() |
|||
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 |
Copyright © 2000 - 2009 MantisBT Group |