Openbravo Issue Tracking System - Retail Modules
View Issue Details
0052152Retail ModulesDelivery Modespublic2023-04-18 14:422023-04-21 08:49
ngarcia 
ranjith_qualiantech_com 
urgentmajoralways
closedfixed 
5
 
RR23Q3 
approved
Gold
58891
No
0052152: OutDatedDataChangeException if Issue Sales Order is executed before processing the related Data Import Entry
OutDatedDataChangeException if Issue Sales Order is executed before processing the related Data Import Entry
In the backoffice:
   Set the Delivery Mode to 'Pickup in store' to Avalanche transceiver

In the POS:
   Create a receipt for Arturo Montoro
   Add Avalanche transceiver
   Pay it

In the backoffice:
   Check it is correctly imported

In the POS:
   Open Receipt
   Select previously created order

In the backoffice (workaround to have a Data Import Entry pending to be processed):
   In Data Import Entries, change the status of the record related to the order from Processed to Error

In the POS:
   Issue Invoice and complete

In the backoffice:
   Check the new Data Import Entry is also in Error

In the POS:
   Issue Sales Order
   Select previously created order
   Select the lines
   Complete

In the backoffice:
   Change the Data Import Entry related to the order from Error to Processed
   Change the Data Import Entry related to the invoicing from Error to Initial
   Once it is automatically processed, check the order is stuck in Errors While Importing POS Data with the following error:

org.openbravo.mobile.core.process.OutDatedDataChangeException: The data of this order has been changed on the server. Please reload the ticket through the menu and apply your changes again.
The problem is that the Issue Sales Order does not create a Data Import Entry and thus, it doesn't follow the order of the actions made over the order. It updates the order lines and it doesn't match the loaded of the JSON
No tags attached.
related to defect 0053225 closed ranjith_qualiantech_com OutDatedDataChangeException occurs because Data Import Entry is created AFTER the order creation and after issuing products. 
Issue History
2023-04-18 14:42ngarciaNew Issue
2023-04-18 14:42ngarciaAssigned To => Retail
2023-04-18 14:42ngarciaOBNetwork customer => Gold
2023-04-18 14:42ngarciaSupport ticket => 58891
2023-04-18 14:42ngarciaTriggers an Emergency Pack => No
2023-04-18 14:43ngarciaIssue Monitored: networkb
2023-04-19 07:16ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-04-19 07:19ranjith_qualiantech_comStatusnew => scheduled
2023-04-20 04:32hgbotMerge Request Status => open
2023-04-20 04:32hgbotNote Added: 0148612
2023-04-21 08:49hgbotMerge Request Statusopen => approved
2023-04-21 08:49hgbotNote Added: 0148679
2023-04-21 08:49hgbotResolutionopen => fixed
2023-04-21 08:49hgbotStatusscheduled => closed
2023-04-21 08:49hgbotFixed in Version => RR23Q3
2023-04-21 08:49hgbotNote Added: 0148680
2023-08-17 11:02ngarciaRelationship addedrelated to 0053225

Notes
(0148612)
hgbot   
2023-04-20 04:32   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1147 [^]
(0148679)
hgbot   
2023-04-21 08:49   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1147 [^]
(0148680)
hgbot   
2023-04-21 08:49   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 1584459b9c91a59aa21ec1d9c4c14f5e95495634
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 21-04-2023 06:49:13
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/1584459b9c91a59aa21ec1d9c4c14f5e95495634 [^]

Fixed ISSUE-52152: IssueSalesOrder should not be processed if order presents in EWI
* Issue Sales Order popup should be closed if any error occurs in the process
* Added Mobile process (Processing Scrim) for IssueSalesOrder process

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/OBMOBC_PROCESS_DEFINITION.xml
M src/org/openbravo/retail/posterminal/POSUtils.java
M src/org/openbravo/retail/posterminal/PaidReceipts.java
M src/org/openbravo/retail/posterminal/process/IssueSalesOrderLines.java
M web/org.openbravo.retail.posterminal/js/components/orderselector.js
---