Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045991Retail ModulesWeb POSpublic2021-03-03 15:312021-03-22 08:07
Leyre 
rqueralta 
highmajoralways
closedfixed 
5
 
RR21Q2 
No
0045991: Error in Cross Store Sales using the same Assortment
Error in Cross Store Sales using the same Assortment
If I make a sale in store 1 selecting a product and its delivery from another store, this sales order can not be issued in the Delivery Store.

The sales order is not well created in the backend, indicating the Document transaction document of the first store, when it should be the second one.

The sales order can be opened by the functionality Open receipt but not by the functionality "Issue Sales Order" nor "Order Preparation", so the delivery can not be done.

Steps to reproduce:

1. Open backend inlivebuilds with white valey group Admin.

2. Add the preference Enable Delivery mode =Y.

3. Add stock for Cooking set in the warehouses for the Stores Vall Boi and Orhi.

4. Go to the termina VB-1
https://livebuilds.openbravo.com/retail_modules_pgsql_pi/web/org.openbravo.retail.posterminal/?terminal=VB-1#retail.pointofsale [^]
and make a sale for Cooking set, check the stock and selecto other stores stock, selecting the store Orhi. Add any customer and any delivery condition.

5. Pay the order.

6. Go to the terminal of Orhi store
https://livebuilds.openbravo.com/retail_modules_pgsql_pi/web/org.openbravo.retail.posterminal/?terminal=OS-1#retail.pointofsale [^]

7. Go to the menu option Issue Sales Order, realize you are not able to open the receipt to deliver it.

8. Realize you are able to open it in Open receipts option, but no able to deliver it.

9. Go to the backend, check the order has been created for Orhi store and VB-1 terminal, but the Transaction Document is the one from Vall Boi, and it should be from Orhi. May be this is why the order is not found...

10. The order can not be also opened from the functionality Order preparation, if you want to check it in this environment you should configure AWO.
No tags attached.
Issue History
2021-03-03 15:31LeyreNew Issue
2021-03-03 15:31LeyreAssigned To => Retail
2021-03-03 15:31LeyreResolution time => 1616540400
2021-03-03 15:31LeyreTriggers an Emergency Pack => No
2021-03-08 21:08rqueraltaAssigned ToRetail => rqueralta
2021-03-08 21:08rqueraltaStatusnew => scheduled
2021-03-11 14:36hgbotNote Added: 0126631
2021-03-22 08:07hgbotResolutionopen => fixed
2021-03-22 08:07hgbotStatusscheduled => closed
2021-03-22 08:07hgbotNote Added: 0126807
2021-03-22 08:07hgbotFixed in Version => RR21Q2
2021-03-22 08:07hgbotNote Added: 0126808

Notes
(0126631)
hgbot   
2021-03-11 14:36   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/342 [^]
(0126807)
hgbot   
2021-03-22 08:07   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/342 [^]
(0126808)
hgbot   
2021-03-22 08:07   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 3073fdfb0521a3316c95650ae54a9f5efc90dd15
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 2021-03-22T07:05:22+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/3073fdfb0521a3316c95650ae54a9f5efc90dd15 [^]

Fixed BUG-45991: If it's a cross store order updated the Transaction Document of the order to order organization document type.

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
---