Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016557Openbravo ERPA. Platformpublic2011-03-30 16:282011-04-09 00:00
mirurita 
marvintm 
normalmajoralways
closedfixed 
5
pi 
3.0RC6 
Core
No
0016557: Document Number not properly generated, not taking in account sequence defined for default document type
Document Number (DocumentNo) field is not taking in account the sequence defined for the default document type of the window. It takes (if exists) the standard DocumentNO_tablename sequence.

In org.openbravo.client.kernel.reference.UIDefinition class line 148 the documentno field is treated as special case.

String docTypeTarget = rq.getRequestParameter("inp"
       + Sqlc.TransformaNombreColumna("C_DocTypeTarget_ID"));
if (docTypeTarget == null)
  docTypeTarget = "";
String docType = rq.getRequestParameter("inp"
       + Sqlc.TransformaNombreColumna("C_DocType_ID"));
if (docType == null)
  docType = "";


The problem is when taking the value of the c_doctype_id the default value of this field hasn't been calculated yet, that's why it's not taking in account the sequence of the document type.
1) Go to AR Payment document type and look for the associated sequence
2) Go to Payment In and click on new. realize that it's not taking in account this sequence.
No tags attached.
Issue History
2011-03-30 16:28miruritaNew Issue
2011-03-30 16:28miruritaAssigned To => marvintm
2011-03-30 16:28miruritaModules => Core
2011-03-31 08:19alostaleStatusnew => scheduled
2011-03-31 08:19alostalefix_in_branch => pi
2011-03-31 12:24hgbotCheckin
2011-03-31 12:24hgbotNote Added: 0035410
2011-03-31 12:24hgbotStatusscheduled => resolved
2011-03-31 12:24hgbotResolutionopen => fixed
2011-03-31 12:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/96ea551e4d00fa05265ceb255a9ac3984d70a3b9 [^]
2011-04-08 18:24iperdomoNote Added: 0035802
2011-04-08 18:24iperdomoStatusresolved => closed
2011-04-09 00:00anonymoussf_bug_id0 => 3281273

Notes
(0035410)
hgbot   
2011-03-31 12:24   
Repository: erp/devel/pi
Changeset: 96ea551e4d00fa05265ceb255a9ac3984d70a3b9
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Mar 31 11:32:53 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/96ea551e4d00fa05265ceb255a9ac3984d70a3b9 [^]

Fixed issue 16557. DocumentNo columns will be computed at the end, so that the doctypes have been already set

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
---
(0035802)
iperdomo   
2011-04-08 18:24   
Tested on pi @ rev ab8b8b1cc6be