Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010808Openbravo ERP07. Sales managementpublic2009-09-29 10:462011-02-04 09:11
networkb 
rmorley 
normalmajoralways
newopen 
5
2.50MP5 
 
Core
No
0010808: The invoices on draft should not use the sequences until they are completed.
The invoices on draft should not use the sequences until they are completed.
As Openbravo allows to delete invoices the sequences of the invoices shouldn't
be used until the invoices are completed.
For example in the draft status the documentno shouldn't appear so in the case that you remove the invoice, you won't lost the sequence number.

No tags attached.
Issue History
2009-09-29 10:46networkbNew Issue
2009-09-29 10:46networkbAssigned To => rafaroda
2009-10-01 11:11networkbNote Added: 0020622
2009-10-06 12:33rafarodaAssigned Torafaroda => pjuvara
2011-02-04 09:11jpabloaeAssigned Topjuvara => rmorley

Notes
(0020622)
networkb   
2009-10-01 11:11   
Maybe is better to create the sequence when posting instead of when completing.

In other ERP's that allow to delete invoices the funcionallity works in the following way:
-When generating a new invoice the application takes into account the invoices deleted comprobing the correlation between numbers and dates.
The application does not allow to save a number with a date bigger than the last created invoice.
-The invoices uses two sequences, one when the document is created, and other when it is posted.