Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012412Openbravo ERP03. Procurement managementpublic2010-02-23 12:082010-05-11 18:20
networkb 
dalsasua 
urgentminoralways
closedfixed 
5
2.50MP11 
2.50MP172.50MP17 
OBPS
Core
No
0012412: Error in Matched Invoice when you void a Good Receipt
When you have a purhase invoice and you generate a good receipt from this invoice. When you complete the good receipt, a line is created on Matched Invoice.

If you void this Good Receipt on Matched Invoice there is not change.
-As Openbravo Admin go to Procurement Management || Transactions || Purchase Invoice.
-Create a new record, create a new line and complete.
-Go to Procurement Management || Transactions || Goods Receipt.
-Create a new record from the invoice created using Create Lines From.
-Complete.

-Go to Procurement Management || Transactions || Matched Invoices
-Realize that a line has been created.

-Go back to Procurement Management || Transactions || Goods Receipt.
-Select the good receipt created.
-Click close
-Choose void in the combo
-Click ok

-Go to Go to Procurement Management || Transactions || Matched Invoices
-Realize that there are not changes.
No tags attached.
related to defect 00126732.50MP17 closed dalsasua Uncorrect link to good receipts when an invoice is shipped in several good receipts 
Issue History
2010-02-23 12:08networkbNew Issue
2010-02-23 12:08networkbAssigned To => adrianromero
2010-02-23 12:08networkbOBNetwork customer => Yes
2010-02-23 13:43adrianromeroStatusnew => scheduled
2010-02-23 13:43adrianromerofix_in_branch => pi
2010-02-26 10:37dalsasuaNote Added: 0024852
2010-02-26 10:37dalsasuaStatusscheduled => feedback
2010-02-26 10:51networkbNote Added: 0024854
2010-02-26 10:51networkbStatusfeedback => new
2010-02-26 10:51networkbfix_in_branchpi =>
2010-02-26 11:02dalsasuaNote Added: 0024855
2010-02-26 11:05networkbNote Added: 0024856
2010-02-26 11:05networkbSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=79#r79
2010-02-26 11:06adrianromeroAssigned Toadrianromero => dalsasua
2010-02-26 16:28networkbPriorityurgent => immediate
2010-03-01 10:03psarobeStatusnew => scheduled
2010-03-01 10:03psarobeAssigned Todalsasua => adrianromero
2010-03-01 10:03psarobefix_in_branch => pi
2010-03-01 10:32psarobeNote Added: 0024893
2010-03-02 17:40dalsasuaAssigned Toadrianromero => dalsasua
2010-03-08 10:04dalsasuaNote Added: 0025110
2010-03-08 10:04dalsasuaStatusscheduled => feedback
2010-03-08 16:05jpabloaeTarget Version2.50MP13 => 2.50MP14
2010-03-22 21:01dmitry_mezentsevNote Added: 0025657
2010-03-23 09:49adrianromeroRelationship addedrelated to 0012673
2010-04-06 09:38dalsasuaStatusfeedback => scheduled
2010-04-06 09:41dalsasuaNote Added: 0025887
2010-04-06 09:41dalsasuaStatusscheduled => resolved
2010-04-06 09:41dalsasuaFixed in SCM revision => 5ff0aba4d250
2010-04-06 09:41dalsasuaResolutionopen => fixed
2010-04-14 12:48psarobeStatusresolved => new
2010-04-14 12:48psarobeResolutionfixed => open
2010-04-14 12:48psarobeStatusnew => scheduled
2010-04-14 12:49psarobeNote Added: 0026174
2010-04-15 11:00adrianromeroNote Added: 0026235
2010-04-15 11:00adrianromeroSeveritymajor => minor
2010-04-15 11:00adrianromeroTarget Version2.50MP14 => 2.50MP16
2010-04-15 11:00adrianromerofix_in_branchpi =>
2010-04-19 11:19adrianromeroPriorityimmediate => urgent
2010-05-03 17:40dalsasuaNote Added: 0026884
2010-05-03 17:40dalsasuaStatusscheduled => resolved
2010-05-03 17:40dalsasuaFixed in Version => pi
2010-05-03 17:40dalsasuaFixed in SCM revision5ff0aba4d250 => 01e5e323655b
2010-05-03 17:40dalsasuaResolutionopen => fixed
2010-05-10 16:48psarobeNote Added: 0027104
2010-05-10 16:48psarobeStatusresolved => closed
2010-05-10 16:48psarobeFixed in Versionpi => 2.50MP16
2010-05-11 00:00anonymoussf_bug_id0 => 2999637
2010-05-11 18:19jpabloaeTarget Version2.50MP16 => 2.50MP17
2010-05-11 18:20jpabloaeFixed in Version2.50MP16 => 2.50MP17

Notes
(0024852)
dalsasua   
2010-02-26 10:37   
When in steps to reproduce says "-Click Close.", is it correct? should say "-Click void."?
(0024854)
networkb   
2010-02-26 10:51   
David,

the button is 'Close' and there is only an action: Void
(0024855)
dalsasua   
2010-02-26 11:02   
Then I should go for:
-Click close
-Choose void in the combo
-Click ok
(0024856)
networkb   
2010-02-26 11:05   
Yes, these are the steps.
(0024893)
psarobe   
2010-03-01 10:32   
Solution:

It has to insert as many lines as you void in the table M_MATCHINV but with negative qty
(0025110)
dalsasua   
2010-03-08 10:04   
The provided scenario shouldn't happen, in my opinion. The bug is that system allows user to void a good receipt that has been already invoiced, because:

1) The new, voided, goods receipt document will not be available anymore for being invoiced, so a material that has been returned to provider will not appear as pending in the system.

2) The flow of voiding invoice <-> void order regarding matched invoices documents and accounting becomes really complex.

My proposal is: allow user to void a good receipt only if:

a) it has not been invoiced (no impact in Matched Invoices documents)
b) it has been invoiced, but the invoice/s where this material was invoiced, has/have been previously voided as well.
c) if user wants to return a material already invoiced without voiding the associated invoice/s, will create a negative good receipt document, valid to be invoiced again.

Regards.
(0025657)
dmitry_mezentsev   
2010-03-22 21:01   
Hello All,

This issue is going "hot", expiring in 15 days so I suggest to make a decision here.

I agree with a David proposal.
Point c) is the business flow we agreed on and which we now use for return of materials in Quick Start and it is described in the corresponding documentation.
(0025887)
dalsasua   
2010-04-06 09:41   
A solution has been provided to QA and Support teams. Pending their approval to push the changeset to Pi repository.
(0026174)
psarobe   
2010-04-14 12:49   
Still in testing phase. Several issues have been found. Pending to be fixed
(0026235)
adrianromero   
2010-04-15 11:00   
Agreed with the client to provide the fix for 2.50MP16
(0026884)
dalsasua   
2010-05-03 17:40   
Provided a solution to QA for testing
(0027104)
psarobe   
2010-05-10 16:48   
Tested working fine