Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0007705 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] 02. Master data management | major | always | 2008-10-23 12:36 | 2009-03-26 18:40 | |||
Reporter | jtarbal | View Status | public | |||||
Assigned To | rafaroda | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | 2.40 | Fixed in SCM revision | 13512 | |||
Projection | none | ETA | none | Target Version | 2.50 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | 2.40 | SCM revision | ||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0007705: POS order synchronization error creates as many payments as order lines | |||||||
Description | When importing the sales orders registered in a OB POS (v2.20) into OB ERP (v2.40), if the sales order has more than one line, the sales order created in Openbravo ERP has as many payments as lines in the sales order. The amount of each of these payments is the total sales order amount. That means that, the payments are duplicated and thus it is wrong. In order to reproduce the error, follow the next steps: 1.- Configure the OB POS integration with OB ERP 2.- In the POS, synchronize the products catalog. The products from the ERP will be created into the POS. 3.- In the POS, register a new sales of more than one line. 4.- In the POS, synchronize the sales orders. 5.- In the ERP, go to Master Data Management > Import Data > Import Orders. Check that this window contains the sales order lines created before in the POS. 6.- Double click on any of the lines and import the sales orders. 7.- Go to Sales Management > Transactions > Sales Order. Search the sales order imported and go to Payment tab. Realize that there is as many payments as lines in the sales order. 8.- Complete the sales order. See the error when completing this document. | |||||||
Steps To Reproduce | To reproduce this issue both in trunk and branch 2.40 without using Openbravo POS do the following via Openbravo ERP: 0) Only for 2.40: go to 'Application Dictionary || Tables and Columns || Table', select I_Order and click on 'Create Columns' (this will add from the database Paymentrule1 and Paymentamount1 which will be needed for the import process) 1) Go to 'Master Data Management || Import Data || Import Loader Format' 2) Follow the steps of http://wiki.openbravo.com/wiki/QA_test_plan_2.50/Test_cases [^] * Do not include Currency column * Include Paymentrule1 column with data type String * Include Paymentamount1 column with data type Number 3) Create an OrdersPOS.txt that will simulate 1 incoming order from Openbravo POS with 2 lines (hence, 1 payment that will be payed in Cash): AA8758758,Standard Order,bellphone,beer,100,10.5,B,6410 AA8758758,Standard Order,bellphone,shirts,400,13.4,B,6410 4) Go to 'Master Data Management || Import Data || Import File Loader' and import OrderPOS.txt with Format File = Orders 5) Go to 'Master Data Management || Import Data || Import Orders || Import Order' and see that there are to lines (that correspond to one single order imported from POS) 6) For each of the lines set an Order Date 7) Click on 'Import Orders' Success message display saying: Orders not imported: 0; Orders inserted: 1; Orders line inserted: 2; 8) Navigate to the Sales Order created. 9) Check that the Summed Line Amount = 6410 10) Go to Lines and see that the two lines have been inserted correctly. 11) Go to Payment and you will see two payments with Cash payment rule and Amount 6410 each: WRONG 12) However, go to the Header and complete this order. The order is completed successfully. | |||||||
Proposed Solution | Only one Payment line per Order header should be created. | |||||||
Tags | comsup_sprint7 | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0013912) svnbot (reporter) 2009-02-23 12:06 |
Repository: openbravo Revision: 13512 Author: rafaroda Date: 2009-02-23 12:06:11 +0100 (Mon, 23 Feb 2009) Fixes bug 0007705 Import of orders now only creates a payment per order. --- U branches/r2.40/src/org/openbravo/erpCommon/ad_process/ImportOrder.java U branches/r2.40/src/org/openbravo/erpCommon/ad_process/ImportOrder_data.xsql --- https://dev.openbravo.com/websvn/openbravo/?rev=13512&sc=1 [^] |
(0015021) psarobe (manager) 2009-03-26 18:40 |
I close the bug but what it does it's wrong. A payment shouldn't be created when importing sales order. I will log another bug |
Issue History | |||
Date Modified | Username | Field | Change |
2009-02-20 09:17 | rafaroda | Type | defect => backport |
2009-02-20 09:17 | rafaroda | fix_in_branch | => 2.40 |
2009-02-23 12:06 | svnbot | Checkin | |
2009-02-23 12:06 | svnbot | Note Added: 0013912 | |
2009-02-23 12:06 | svnbot | Status | scheduled => resolved |
2009-02-23 12:06 | svnbot | Resolution | open => fixed |
2009-02-23 12:06 | svnbot | svn_revision | => 13512 |
2009-02-23 18:39 | rafaroda | Tag Attached: comsup_sprint7 | |
2009-03-03 17:31 | psarobe | Fixed in Version | => 2.40MP3 |
2009-03-24 11:01 | psarobe | Fixed in Version | 2.40MP3 => 2.40MP4 |
2009-03-26 18:40 | psarobe | Regression testing | => No |
2009-03-26 18:40 | psarobe | Status | resolved => closed |
2009-03-26 18:40 | psarobe | Note Added: 0015021 |
Copyright © 2000 - 2009 MantisBT Group |