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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0005005
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 08. Project and service managementmajorhave not tried2008-09-10 18:282008-12-15 20:05
ReporternetworkbView Statuspublic 
Assigned Torafaroda 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchpiFixed in SCM revision7222
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabaseOracleJava version
OS VersionDatabase versionAnt version
Product Version2.35MP7SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0005005: Create AP Expense Invoices process does not take the sequences number well

DescriptionWhen executing this process if you are using document types different than the standard, although the document type is token well, the number of sequence is not taken from this document type.
Debugging the src/org/openbravo/erpCommon/ad_process/ExpenseAPInvoice.java file
i saw that the document type is well but then is not passed correctly to the function that calculate the document number.
Proposed SolutionIt is used this function to pass the document type
Utility.getContext(this, vars, "C_DocTypeTarget_ID", docTargetType)
but if you have the document type on docTargetType variable maybe you don't need to use the getContext function to get it again.

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

with
String strDocumentno = Utility.getDocumentNo(this, vars, "", "C_Invoice", docTargetType , docTargetType, false, true);

The invoices take the numbers of the document type.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0005007 closedrafaroda Create AP Expense Invoices process does not take the sequences number well 
depends on backport 0005008 closedrafaroda Create AP Expense Invoices process does not take the sequences number well 
depends on backport 0005009 closedrafaroda Create AP Expense Invoices process does not take the sequences number well 

-  Notes
(0009009)
svnbot (reporter)
2008-09-11 18:46

Repository: openbravo
Revision: 7222
Author: rafaroda
Date: 2008-09-11 18:46:21 +0200 (Thu, 11 Sep 2008)

Fixes bug 0005005 Replaced 'Utility.getContext(this, vars, "C_DocTypeTarget_ID", docTargetType)' by 'docTargetType' in ExpenseAPInvoice.java and ExpenseSOrder.java.

---
U trunk/src/org/openbravo/erpCommon/ad_actionButton/ExpenseSOrder.java
U trunk/src/org/openbravo/erpCommon/ad_process/ExpenseAPInvoice.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=7222&sc=1 [^]

- Issue History
Date Modified Username Field Change
2008-09-10 18:28 networkb New Issue
2008-09-10 18:28 networkb Assigned To => cromero
2008-09-10 18:28 networkb sf_bug_id 0 => 2104019
2008-09-10 18:28 networkb Regression testing => No
2008-09-10 18:44 rafaroda Assigned To cromero => rafaroda
2008-09-10 19:10 rafaroda Status new => scheduled
2008-09-10 19:10 rafaroda fix_in_branch => trunk
2008-09-11 18:46 svnbot Checkin
2008-09-11 18:46 svnbot Note Added: 0009009
2008-09-11 18:46 svnbot Status scheduled => resolved
2008-09-11 18:46 svnbot Resolution open => fixed
2008-09-11 18:46 svnbot svn_revision => 7222
2008-12-15 20:05 psarobe Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker