Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019862Openbravo ERP03. Procurement managementpublic2012-02-15 18:052012-03-15 09:33
maite 
jecharri 
immediatemajoralways
closedfixed 
5
 
2.50MP40 
Core
No
0019862: When running "Generate Receipt from Invoice" process, associated matched invoice entry is created twice
When running "Generate Receipt from Invoice" process, associated matched invoice entry is created twice
1. Log in as "System Administrator" and "Display" button "Generate Receipt from Invoice" in Purchase Invoice Header window
2. Run ant compile.complete smartbuild to have it working
3. Log in as Openbravo Admin and create Purchase Invoice for any bp and any date
4. Add invoice line and process invoice
5. Run ""Generate Receipt from Invoice" process
6. Go to Invoice line and, from Linked Items section, navigate to Matched Invoice and realize that 2 records are associated to each line
No tags attached.
blocks defect 00197833.0MP9 closed jecharri When running "Generate Receipt from Invoice" process, associated matched invoice entry is created twice 
Issue History
2012-02-24 09:15jecharriTypedefect => backport
2012-02-24 09:15jecharrifix_in_branchpi => 2.50
2012-02-24 09:15jecharriTarget Version3.0MP9 => 2.50MP40
2012-03-08 10:26jecharriNote Added: 0046182
2012-03-08 10:39hgbotCheckin
2012-03-08 10:39hgbotNote Added: 0046184
2012-03-08 10:39hgbotStatusscheduled => resolved
2012-03-08 10:39hgbotResolutionopen => fixed
2012-03-08 10:39hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/33175c6c534f1874b078f7f290e4f4364ca15362 [^] => http://code.openbravo.com/erp/stable/2.50/rev/f619f50ded07e3450de6a735be85e2a6ecb82d2a [^]
2012-03-15 09:33maiteNote Added: 0046437
2012-03-15 09:33maiteStatusresolved => closed

Notes
(0046182)
jecharri   
2012-03-08 10:26   
Test cases:
-reproduce the steps to reproduce and verify that now only one record is created in match invoice.
-verify that the module script works propely:
  -for that, you need to have some line duplicated (execute the process before the fix)
(0046184)
hgbot   
2012-03-08 10:39   
Repository: erp/stable/2.50
Changeset: f619f50ded07e3450de6a735be85e2a6ecb82d2a
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Thu Mar 08 10:38:35 2012 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/f619f50ded07e3450de6a735be85e2a6ecb82d2a [^]

Fixes issue 19862, issue 13912:
When running "Generate Receipt from Invoice" process, associated matched invoice entry is created twice.
The process 'Create Lines from' of the Goods Shipment window shows incorrect data.
The problem was that to solve the issue 13912 it was created some code duplicated and it did not work properly. Now this code has been deleted and changed the combo query for proper behaviour.
Added the module script to delete the duplicated lines in m_matchinv table. Also, the lines with related m_inout or c_invoiceline that are sales.

---
M src-db/database/model/functions/M_INOUT_POST.xml
M src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Shipment_data.xsql
A src-util/modulescript/build/classes/org/openbravo/modulescript/DeleteDuplicateMatchInvoice.class
A src-util/modulescript/build/classes/org/openbravo/modulescript/DeleteDuplicateMatchInvoiceData.class
A src-util/modulescript/src/org/openbravo/modulescript/DeleteDuplicateMatchInvoice.java
A src-util/modulescript/src/org/openbravo/modulescript/DeleteDuplicateMatchInvoice_data.xsql
---
(0046437)
maite   
2012-03-15 09:32   
verified