Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018269Openbravo ERP02. Master data managementpublic2011-08-12 10:332012-06-15 13:32
adrianromero 
adrianromero 
urgentmajorrandom
closedfixed 
5
pi 
pi 
Core
No
0018269: When syncrhonizing a and processing orders at the same time orders are not properly imported
When launching at the same time the job that imports orders in I_ORDER and the process of orders imported, some sales orders are processed as purchase orders and there is a difference in the total in sales reports in ERP and POS.

The reason is that the import order process is divided in two transactions one that fixes and fills in missed data in I_ORDER and two that actually imports and processed the orders.

The problem here is that when starting the second transaction the process is taking orders that has been synchronized during the first transaction and has not been fixed / filled in.
Launch the import orders job and the process of orders several times at the same time.
The solution is when synchronizing order, fill in properly all the changes and do not give any responsibility to the first transaction.
No tags attached.
blocks backport 00182682.50MP33 closed adrianromero When syncrhonizing a and processing orders at the same time orders are not properly imported 
Issue History
2011-08-12 10:33adrianromeroNew Issue
2011-08-12 10:33adrianromeroAssigned To => adrianromero
2011-08-12 10:33adrianromeroModules => Core
2011-08-12 10:33adrianromeroIssue generated from0018268
2011-08-12 10:33adrianromeroRelationship addedblocks 0018268
2011-08-12 10:33adrianromeroStatusnew => scheduled
2011-08-12 10:33adrianromerofix_in_branch => pi
2011-08-12 11:00hgbotCheckin
2011-08-12 11:00hgbotNote Added: 0040145
2011-08-12 11:00hgbotStatusscheduled => resolved
2011-08-12 11:00hgbotResolutionopen => fixed
2011-08-12 11:00hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.pos.sync/rev/0127ac8080e023336da4eca0b755800ac38cfea3 [^]
2012-06-15 13:32guilleaerNote Added: 0049854
2012-06-15 13:32guilleaerStatusresolved => closed
2012-06-15 13:32guilleaerFixed in Version => pi

Notes
(0040145)
hgbot   
2011-08-12 11:00   
Repository: erp/pmods/org.openbravo.pos.sync
Changeset: 0127ac8080e023336da4eca0b755800ac38cfea3
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Fri Aug 12 10:59:01 2011 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.pos.sync/rev/0127ac8080e023336da4eca0b755800ac38cfea3 [^]

Fixes issue 0018269: When syncrhonizing a and processing orders at the same time orders are not properly imported

---
M src/org/openbravo/pos/sync/rest/UploadOrderProcess.java
---
(0049854)
guilleaer   
2012-06-15 13:32   
code reviewed and tested