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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0052152
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Delivery Modesmajoralways2023-04-18 14:422023-04-21 08:49
ReporterngarciaView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityurgentResolutionfixedFixed in VersionRR23Q3
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Statusapproved
Review Assigned To
OBNetwork customerGold
Support ticket58891
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0052152: OutDatedDataChangeException if Issue Sales Order is executed before processing the related Data Import Entry

DescriptionOutDatedDataChangeException if Issue Sales Order is executed before processing the related Data Import Entry
Steps To ReproduceIn 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.
Proposed SolutionThe 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
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0053225 closedranjith_qualiantech_com OutDatedDataChangeException occurs because Data Import Entry is created AFTER the order creation and after issuing products. 

-  Notes
(0148612)
hgbot (developer)
2023-04-20 04:32

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1147 [^]
(0148679)
hgbot (developer)
2023-04-21 08:49

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1147 [^]
(0148680)
hgbot (developer)
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
---

- Issue History
Date Modified Username Field Change
2023-04-18 14:42 ngarcia New Issue
2023-04-18 14:42 ngarcia Assigned To => Retail
2023-04-18 14:42 ngarcia OBNetwork customer => Gold
2023-04-18 14:42 ngarcia Support ticket => 58891
2023-04-18 14:42 ngarcia Triggers an Emergency Pack => No
2023-04-18 14:43 ngarcia Issue Monitored: networkb
2023-04-19 07:16 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2023-04-19 07:19 ranjith_qualiantech_com Status new => scheduled
2023-04-20 04:32 hgbot Merge Request Status => open
2023-04-20 04:32 hgbot Note Added: 0148612
2023-04-21 08:49 hgbot Merge Request Status open => approved
2023-04-21 08:49 hgbot Note Added: 0148679
2023-04-21 08:49 hgbot Resolution open => fixed
2023-04-21 08:49 hgbot Status scheduled => closed
2023-04-21 08:49 hgbot Fixed in Version => RR23Q3
2023-04-21 08:49 hgbot Note Added: 0148680
2023-08-17 11:02 ngarcia Relationship added related to 0053225


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker