Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005172Openbravo ERP01. General setuppublic2008-09-23 09:162008-09-30 12:40
galderromo 
cromero 
normalmajorN/A
closedduplicate 
20Gentoo 2.6.24
 
 
Core
No
0005172: Fixed length document sequences
Document sequences can be setup with prefixes before and after the sequence. But it is not posible to fix the length of the documentno.

For example, it isn't possible to generate the next sequence:
PRE-0001-A
PRE-0002-A
PRE-0003-A
...

This functionality is very demanded by customer and users.
Go to sequences window and setup a sequence. Assign the sequence in a document (AP Invoice). Create a new document. The result will be:
PRE-1-A
PRE-2-A
PRE-3-A
...
PRE-10-A
PRE-11-A
...
PRE-100-A
PRE-101-A
...
Include two more field on sequence setup "left filling" and "right filling". Then implement lpad and rpad on ad_sequence_next, ad_sequence_doc and ad_sequence_doctype.
GPS-Top20
duplicate of feature request 0003020pi acknowledged eduardo_Argal Left padding in document numbers 
Issue History
2008-09-23 09:16galderromoNew Issue
2008-09-23 09:16galderromoAssigned To => cromero
2008-09-23 09:16galderromosf_bug_id0 => 2124093
2008-09-30 12:40pjuvaraRegression testing => No
2008-09-30 12:40pjuvaraRelationship addedduplicate of 0003020
2008-09-30 12:40pjuvaraStatusnew => closed
2008-09-30 12:40pjuvaraDuplicate ID0 => 3020
2008-09-30 12:40pjuvaraResolutionopen => duplicate
2008-09-30 12:41pjuvaraTag Attached: GPS-Top20

There are no notes attached to this issue.