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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0005008
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 08. Project and service managementmajorhave not tried2008-09-10 19:102008-12-09 11:33
ReporternetworkbView Statuspublic 
Assigned Torafaroda 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branch2.40Fixed in SCM revision7219
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

0005008: 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 ]
blocks defect 0005005 closedrafaroda Create AP Expense Invoices process does not take the sequences number well 

-  Notes
(0009008)
svnbot (reporter)
2008-09-11 18:41

Repository: openbravo
Revision: 7219
Author: rafaroda
Date: 2008-09-11 18:41:10 +0200 (Thu, 11 Sep 2008)

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

---
U branches/r2.40/src/org/openbravo/erpCommon/ad_actionButton/ExpenseSOrder.java
U branches/r2.40/src/org/openbravo/erpCommon/ad_process/ExpenseAPInvoice.java
---

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

- Issue History
Date Modified Username Field Change
2008-09-10 19:10 rafaroda New Issue
2008-09-10 19:10 rafaroda Assigned To => rafaroda
2008-09-10 19:10 rafaroda Status new => scheduled
2008-09-11 18:41 svnbot Checkin
2008-09-11 18:41 svnbot Note Added: 0009008
2008-09-11 18:41 svnbot Status scheduled => resolved
2008-09-11 18:41 svnbot Resolution open => fixed
2008-09-11 18:41 svnbot svn_revision => 7219
2008-12-09 11:33 krishna Regression testing => No
2008-12-09 11:33 krishna Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker