Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005197Openbravo ERP00. Application dictionarypublic2008-09-23 13:012009-01-26 10:41
galderromo 
alostale 
immediatemajoralways
closedfixed 
20Gentoo 2.6.24
 
 
Core
No
0005197: Doc sequences and database restrictions
Right now, when working with Sales Invoices, WAD generated code updates the document's sequence before is sure the invoice has been created. This way it is possible to update the sequence but not to create the record due to database restrictions.

This issue is critica because can generate sequence jumps on Sales Invoices, which is ilegal.

In some how, this request is related to 4439 and 5054.
Suppose you do not want the user to create an invoice with no c_project_id or not user1_id. So you create on the database this restriction (there is no way to do it through the AP).

Then, when you press the SAVE button, the WAD generated code updates the sequence and later inserts the record on the database. But the restriction avoids this inserting, so the sequence has been lost.
Change the sequence control, and make sure the inserting has been properly done, before updating the sequence.
No tags attached.
blocks defect 0005175 closed alostale Doc sequences and database restrictions 
Issue History
2008-09-23 13:01cromeroNew Issue
2008-09-23 13:01cromeroAssigned To => alostale
2008-09-23 13:01cromeroStatusnew => scheduled
2008-12-01 11:17networkbIssue Monitored: networkb
2008-12-01 11:17networkbPriorityhigh => immediate
2008-12-01 17:20svnbotCheckin
2008-12-01 17:20svnbotNote Added: 0010851
2008-12-01 17:20svnbotStatusscheduled => resolved
2008-12-01 17:20svnbotResolutionopen => fixed
2008-12-01 17:20svnbotsvn_revision => 10801
2008-12-12 16:13svnbotCheckin
2008-12-12 16:13svnbotNote Added: 0011255
2008-12-12 16:13svnbotsvn_revision10801 => 11163
2008-12-12 17:52psarobeStatusresolved => new
2008-12-12 17:52psarobeResolutionfixed => open
2008-12-12 17:52psarobeFixed in Version2.35MP10 =>
2008-12-12 17:52psarobeStatusnew => scheduled
2008-12-12 17:52psarobeStatusscheduled => resolved
2008-12-12 17:52psarobeResolutionopen => fixed
2009-01-26 10:41psarobeRegression testing => No
2009-01-26 10:41psarobeStatusresolved => closed

Notes
(0010851)
svnbot   
2008-12-01 17:20   
Repository: openbravo
Revision: 10801
Author: alostale
Date: 2008-12-01 17:20:26 +0100 (Mon, 01 Dec 2008)

fixed bug 0005197: Doc sequences and database restrictions

---
U branches/r2.3x/src/org/openbravo/erpCommon/utility/DocumentNo_data.xsql
U branches/r2.3x/src/org/openbravo/erpCommon/utility/Utility.java
U branches/r2.3x/src-wad/src/org/openbravo/wad/Wad.java
U branches/r2.3x/src-wad/src/org/openbravo/wad/datasource.xsqlxml
U branches/r2.3x/src-wad/src/org/openbravo/wad/javasource.javaxml
---

https://dev.openbravo.com/websvn/openbravo/?rev=10801&sc=1 [^]
(0011255)
svnbot   
2008-12-12 16:13   
Repository: openbravo
Revision: 11163
Author: rafaroda
Date: 2008-12-12 16:13:04 +0100 (Fri, 12 Dec 2008)

Fixes bug 0005197 Made fix PotgreSQL compatible

---
U branches/r2.3x/src/org/openbravo/erpCommon/utility/DocumentNo_data.xsql
---

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