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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0011149
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 09. Financial managementmajoralways2009-10-27 15:432009-11-17 00:00
ReporternetworkbView Statuspublic 
Assigned Tovmromanos 
PriorityimmediateResolutionfixedFixed in Version2.50MP9
StatusclosedFix in branchFixed in SCM revisiona23ec93d6ee2
ProjectionnoneETAnoneTarget Version2.50MP9
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version2.50MP5SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0011149: Incorrect documentno is set in GL Journal when a document type is set as "Default" and has a sequence

DescriptionIn GL Journal window, is possible to copy, from a GL Journal template, GL Journal (AppsOpenbravo/src/org/openbravo/erpCommon/ad_process/CopyFromJournal.java). This proccess set an incorrect documentno because it takes a documentno from other document type. This happens if:
*It exists a document type as Default, and a sequence is used.

The problem is that CopyFromJornal.java, gets the documentno using Utility.getContext function.

After debugging this process, LoginUtils.java sets values for session variables, like C_DOCTYPE_ID. This ID, is taken executing this query:
SELECT C_DOCTYPE_ID FROM C_DOCTYPE
WHERE ISACTIVE='Y'
AND ISDEFAULT='Y'.

If this documenttype has a sequence, will be used to do the insert.
Steps To ReproduceGo to Financial Management > Accounting > Setup > Document Type.
Select one document type and set it as "Default".
Also, check "Sequenced Document" option and select a Document sequence.

Go to Financial Management > Accounting > Transaction > GL Journal.
If exists one, check as "Template". If not, create a new record and also its header, and lines.
Complete it.
Create a new GL Journal.
Press "Copy lines".
Select the previous one and OK.
Go to Header and see documentno field.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0021698)
hgbot (developer)
2009-11-10 17:56

Repository: erp/devel/pi
Changeset: a23ec93d6ee2be113276705fba69c0c174678481
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Tue Nov 10 17:57:58 2009 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a23ec93d6ee2be113276705fba69c0c174678481 [^]

Fixed bug 11149: Incorrect documentno in GL Journal
when a document type is set as "Default" and has a sequence

---
M src/org/openbravo/erpCommon/ad_process/CopyFromGLJournal.java
---
(0021832)
sureshbabu (reporter)
2009-11-16 08:58

Tested, Document number rightly set in G/L journal.

- Issue History
Date Modified Username Field Change
2009-10-27 15:43 networkb New Issue
2009-10-27 15:43 networkb Assigned To => rafaroda
2009-10-27 16:34 networkb Target Version => 2.50MP9
2009-10-28 06:19 rafaroda Assigned To rafaroda => dalsasua
2009-10-28 06:19 rafaroda Priority immediate => urgent
2009-10-28 06:19 rafaroda Status new => scheduled
2009-11-09 13:58 pnuding Priority urgent => immediate
2009-11-09 13:58 pnuding Assigned To dalsasua => vmromanos
2009-11-10 17:56 hgbot Checkin
2009-11-10 17:56 hgbot Note Added: 0021698
2009-11-10 17:56 hgbot Status scheduled => resolved
2009-11-10 17:56 hgbot Resolution open => fixed
2009-11-10 17:56 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a23ec93d6ee2be113276705fba69c0c174678481 [^]
2009-11-16 08:58 sureshbabu Note Added: 0021832
2009-11-16 08:58 sureshbabu Status resolved => closed
2009-11-16 08:58 sureshbabu Fixed in Version => 2.50MP9
2009-11-17 00:00 anonymous sf_bug_id 0 => 2898753


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker