Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005633Openbravo ERP02. Master data managementpublic2008-10-23 16:452009-04-21 11:06
Dowid 
Dowid 
normalminorhave not tried
closedfixed 
5
pi 
 
Core
No
0005633: Import Order process problem
1. When importing orders with "mixed" order lines in the *.csv file, incorrect orders are created.

2. When importing the same *.csv file twice the process creates orders with the same Order dates and Document No
1) Import order following the steps in [1]

For the CSV, TXT file use the following data format:

BB7747FFQQ,POS Order,bellphone,beer,500,10.6,100
BB7747FFQQ1,POS Order,Millman,beer,500,10.6,100
BB7747FFQQ1,POS Order,Millman,beer,500,10.6,100
AA875875875RRTT,Standard Order,Millman,beer,100,10.5,102
AA875875875RRTT,Standard Order,Millman,shirts,400,13.4,102
BB7747FFQQ1,POS Order,Millman,beer,100,10.6,100
BB7747FFQQ1,POS Order,Millman,beer,200,10.6,100
AA875875875RRTT,Standard Order,Millman,beer,100,10.5,102
AA875875875RRTT,Standard Order,Millman,beer,100,10.5,102
BB7747FFQQ,POS Order,Millman,beer,500,10.6,100

2) Import this file twice.

3) Go to the orders imported in 'Sales Management || Transactions || Sales Order'.

Please notice that the orders have been inserted incorrectly.



[1] http://wiki.openbravo.com/wiki/QA_test_plan_2.50/Test_cases [^] [^]
Review the import process and sort by DocumentNo and DateOrdererd before importing from the temporary table, also review the logic that checks for existing orders.
No tags attached.
depends on backport 0005661 closed Dowid Import Order process problem 
related to feature request 0006201 acknowledged rmorley The unique condition for Sales Order. 
Issue History
2008-10-23 16:45DowidNew Issue
2008-10-23 16:45DowidAssigned To => cromero
2008-10-23 16:45Dowidsf_bug_id0 => 2189590
2008-10-23 16:45DowidRegression testing => No
2008-10-23 16:45DowidDescription Updated
2008-10-24 14:21DowidProposed Solution updated
2008-10-27 09:54psarobeStatusnew => scheduled
2008-10-27 09:54psarobeNote Added: 0009753
2008-10-27 09:54psarobeAssigned Tocromero => Dowid
2008-10-27 09:54psarobefix_in_branch => trunk
2008-11-26 10:44DowidRelationship addedrelated to 0006201
2008-11-26 10:51svnbotCheckin
2008-11-26 10:51svnbotNote Added: 0010691
2008-11-26 10:51svnbotStatusscheduled => resolved
2008-11-26 10:51svnbotResolutionopen => fixed
2008-11-26 10:51svnbotsvn_revision => 10593
2009-04-21 11:06psarobeStatusresolved => closed

Notes
(0009753)
psarobe   
2008-10-27 09:54   
Please only fix the import process to sort by DocumentNo and DateOrdered.

The unique condition should be: Organization, type document, Documentno, Dateordered. But this should be reported as Feature request and the condition must be a unique constraint in the C_ORDER table
(0010691)
svnbot   
2008-11-26 10:51   
Repository: openbravo
Revision: 10593
Author: dowid
Date: 2008-11-26 10:51:06 +0100 (Wed, 26 Nov 2008)

Bug fixed 0005633: Import Order process problem

---
U trunk/src/org/openbravo/erpCommon/ad_process/ImportOrder.java
U trunk/src/org/openbravo/erpCommon/ad_process/ImportOrder_data.xsql
---

https://dev.openbravo.com/websvn/openbravo/?rev=10593&sc=1 [^]