Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040741Retail ModulesWeb POSpublic2019-05-02 10:432019-05-31 13:47
xabiermerino 
collazoandy4 
urgentmajoralways
closedfixed 
5
 
RR19Q3 
marvintm
No
0040741: Error while importing in Cross Store Returns after delete a line
When the user tries to introduces lines from two different stores in the same return Openbravo does not allow it. This is ok.

But, if the user deletes the line of other store and, then, introduces a line from his store, the JSON is not created properly.

This error is raised in Errors While Importing:

- Click on Verified Returns in VB-1 terminal and open a receipt from Orhi Store (for example receipt nº OS1/0000001).
- Click on Continue and add every line to the receipt.
- Click on return line and click on Delete.
- Click on Verified Returns again and open a receipt from Vall Boi Store (for example receipt nº VB1/0000001).
- Add every line to the receipt.
- Complete the receipt
Realize receipt goes to Errors While Importing POS Data window with following exception:
Entity VB1/0000066 - 03-05-2019 - -182.11 - 10 - -150.50 (OrderLine) with organization Orhi Store references an entity 500001 - 12-02-2019 - VB Customer - 10 - Avalanche transceiver - 1.0 through its property OrderLine.goodsShipmentLine but this referenced entity belongs to an organization Vall Boí Store which is not part of the natural tree of Orhi Store
Receipt organization should be Vall Boi Store
No tags attached.
related to defect 0040766 new Retail Cannot complete a in-store return after opening a cross-store receipt 
related to feature request 0040257RR19Q2 closed aferraz Cross Store Payments & Returns project 
related to defect 0051588 closed ranjith_qualiantech_com Order goes to Errors While Importing POS Data with OBSecurityException if cross-store return line is deleted 
Issue History
2019-05-02 10:43xabiermerinoNew Issue
2019-05-02 10:43xabiermerinoAssigned To => Retail
2019-05-02 10:43xabiermerinoResolution time => 1557871200
2019-05-02 10:43xabiermerinoTriggers an Emergency Pack => No
2019-05-03 13:56aferrazRelationship addedrelated to 0040766
2019-05-03 14:07aferrazSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=18704#r18704
2019-05-03 14:07aferrazProposed Solution updated
2019-05-03 15:07aferrazAssigned ToRetail => collazoandy4
2019-05-03 16:49collazoandy4Statusnew => scheduled
2019-05-06 17:00hgbotCheckin
2019-05-06 17:00hgbotNote Added: 0111510
2019-05-06 17:00hgbotStatusscheduled => resolved
2019-05-06 17:00hgbotResolutionopen => fixed
2019-05-06 17:00hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f4626e7f6e215e380ab26116f3aff54ec26127bb [^]
2019-05-07 10:11aferrazReview Assigned To => marvintm
2019-05-08 13:24marvintmStatusresolved => closed
2019-05-08 13:24marvintmFixed in Version => RR19Q3
2019-05-31 13:47aferrazRelationship addedrelated to 0040257
2023-02-14 10:34ngarciaRelationship addedrelated to 0051588

Notes
(0111510)
hgbot   
2019-05-06 17:00   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: f4626e7f6e215e380ab26116f3aff54ec26127bb
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Fri May 03 13:31:12 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f4626e7f6e215e380ab26116f3aff54ec26127bb [^]

Fixes issue 40741:Error while importing in CrossStoreReturns after delete a line

Wrong receipt information was set if after import a Cross Store Returns all lines
are deleted.

Now if the current receipt is cross store and has no lines is deleted

---
M web/org.openbravo.retail.posterminal/js/components/modalorderselector.js
---