Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0045883
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2021-02-11 10:082021-02-19 08:01
ReportermalsasuaView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionfixedFixed in VersionRR21Q2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0045883: External Order Loader: warehouse is not selected following the priority

DescriptionIn 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 Solutionchange 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();
        }
TagsNo tags attached.
Attached Filespng file icon vallblancaWarehouses.png [^] (174,727 bytes) 2021-02-11 10:08


png file icon salesOrder.png [^] (88,048 bytes) 2021-02-11 10:09


? file icon order.json [^] (1,460 bytes) 2021-02-11 10:09

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(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
---

- 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 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 Note Added: 0126140
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
Powered by Mantis Bugtracker