Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0002598
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 03. Procurement managementminoralways2008-02-07 08:462008-06-18 18:16
Reporteruser71View Statuspublic 
Assigned Togorkaion 
PrioritynormalResolutionduplicateFixed in Version2.40alpha-r3
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Status
Review Assigned To
OBNetwork customerNo
Web browser
ModulesCore
Support ticket
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0002598: Pending Goods Receipts: Wrong DocumentNo

DescriptionVersion: 2.35MP1 (Oracle)

The class "MaterialReceiptPending.java" has an error in the function "processPurchaseOrder". When it's looking for the DocumentNo, it gets a wrong value, because it's getting the values "C_DocTypeTarget_ID" and "C_DocType_ID" by the Context values, OK, but in the next 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);

the parameter "docTargetType" it's wrong, because it must be the ad_window_id (184), the "Goods Receipt" window. Due this, it doesn't find the Context value and use the session default value, generating an error in the DocumentNo, because the session value to "C_DocTypeTarget_ID" and "C_DocType_ID" are 1000026 (Sales Standard Order).

The correct line is the next:

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

and you have to define two Preferences (one for "C_DocTypeTarget_ID" and another one for "C_DocType_ID") without User, to the window "Goods Receipt" and value "1000007" (MM Receipt with Confirmation)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0003735 closedgorkaion Pending Goods Receipts: Wrong DocumentNo 

-  Notes
(0003158)
cromero (viewer)
2008-05-20 18:41
edited on: 2008-06-12 09:24

Logged In: YES
user_id=1500614
Originator: NO

This same bug has been reported here:
https://issues.openbravo.com/view.php?id=314 [^]
with a different proposal for the solution
(0003159)
gorkaion (viewer)
2008-05-29 19:41
edited on: 2008-06-12 09:24

Logged In: YES
user_id=1500690
Originator: NO

Fixed on trunk revision 4679

Now it is used AD_GET_DOCTYPE PL/SQL function to get the docTargetType.
(0006187)
user71
2005-06-01 00:00
edited on: 2008-06-12 09:43

This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1888569 [^]

- Issue History
Date Modified Username Field Change
2008-06-18 18:16 plujan Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker