Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0000429Openbravo ERP03. Procurement managementpublic2008-05-26 12:162008-06-18 15:32
maria_perez 
gorkaion 
urgentmajoralways
closedfixed 
20Ubuntu
2.35 
2.40alpha-r3 
No
Core
No
0000429: Wrong documentno in receipts created from pending goods
In Procurement Management --> Transactions --> Pending goods receipt. We select a pending purchase order, select quantity, warehouse and reception date and click on the Process Button.

Then a good receipt is generated with a document number which is not correct according to the document type.

Patch found:

In file --> src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.java

The line:

strDocumentno = Utility.getDocumentNo(this, vars, "", "M_InOut", Utility.getContext(this, vars, "C_DocTypeTarget_ID", docTargetType), Utility.getContext(this, vars, "C_DocType_ID", docTargetType), false, true);

has been changed to:

strDocumentno = Utility.getDocumentNo(this, vars, "", "M_InOut", docTargetType.equals("")?Utility.getContext(this, vars, "C_DocTypeTarget_ID", docTargetType):docTargetType, Utility.getContext(this, vars, "C_DocType_ID", docTargetType), false, true);

In order to use the variable docTargetType as input parameter in method getDocumentNo, instead of the session variable C_DocTypeTarget_ID, which is used in the current code.

In Procurement Management --> Transactions --> Pending goods receipt. We select a pending purchase order, select quantity, warehouse and reception date and click on the Process Button.
No tags attached.
blocks defect 00003142.35 closed gorkaion Wrong documentno in receipts created from pending goods 
Issue History
2008-05-26 12:16psarobeNew Issue
2008-05-26 12:16psarobeAssigned To => gorkaion
2008-05-26 12:16psarobeStatusnew => scheduled
2008-05-29 19:42gorkaionStatusscheduled => resolved
2008-05-29 19:42gorkaionsvn_revision => 4680
2008-05-29 19:42gorkaionResolutionopen => fixed
2008-05-29 19:42gorkaionNote Added: 0000386
2008-06-11 14:38cromeroFixed in Version => 2.40alpha r3
2008-06-16 06:56pjuvaraPrioritynormal => urgent
2008-06-16 06:56pjuvaraSeverityminor => major
2008-06-16 06:56pjuvaraDescription Updated
2008-06-16 06:56pjuvaraProposed Solution updated
2008-06-18 15:32plujanStatusresolved => closed

Notes
(0000386)
gorkaion   
2008-05-29 19:42   
Fixed the java and xsql to get the correct document no