Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0016417 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 07. Sales management | major | always | 2011-03-22 12:21 | 2012-04-02 06:12 | |||
Reporter | Xpand-IT | View Status | public | |||||
Assigned To | Sandrahuguet | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | e630342dafb1 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | pi | SCM revision | ||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0016417: Ad_Sequence_Doc function increments the sequence for all clients | |||||||
Description | Ad_Sequence_Doc does not take into consideration the p_ad_client_id argument when updating CurrentNext in AD_Sequence table. | |||||||
Proposed Solution | Replace: IF p_Update_Next='Y' THEN UPDATE AD_Sequence SET CurrentNext=CurrentNext + IncrementNo, Updated=TO_DATE(NOW()) WHERE Name=p_SequenceName; END IF; p_DocumentNo:=COALESCE(v_Prefix, '') || v_NextNo || COALESCE(v_Suffix, '') ; By: IF p_Update_Next='Y' THEN UPDATE AD_Sequence SET CurrentNext=CurrentNext + IncrementNo, Updated=TO_DATE(NOW()) WHERE Name=p_SequenceName AND ad_client_id=p_ad_client_id; END IF; p_DocumentNo:=COALESCE(v_Prefix, '') || v_NextNo || COALESCE(v_Suffix, '') ; | |||||||
Tags | VMA-Reviewed | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0046653) Sandrahuguet (viewer) 2012-03-22 13:12 |
Test Plan: F&B Client -Create a Sales Invoice -Organization: F&B España, S.A. -Transaction Document: AR Invoice QA Testing -Create a Sales Invoice -Organization: Spain -Transaction Document: AR Invoice F&B Client -Create a Sales Invoice -Organization: F&B España, S.A. -Transaction Document: AR Invoice You can see that Document No. has a different sequence for each client |
(0046760) vmromanos (viewer) 2012-03-27 13:06 |
Alternative test plan: Run the following queries directly into the database: 1. SELECT CurrentNext, Prefix, Suffix, ad_client_id FROM AD_Sequence WHERE Name='AR Invoice' AND IsActive='Y' AND IsTableID='N' AND IsAutoSequence='Y' 2. Remember the CurrentNext values 3. Select AD_Sequence_Doc('AR Invoice', 'FF8080812AFBCB14012AFBD3E373001F', 'Y') from dual; 4. SELECT CurrentNext, Prefix, Suffix, ad_client_id FROM AD_Sequence WHERE Name='AR Invoice' AND IsActive='Y' AND IsTableID='N' AND IsAutoSequence='Y' 5. Ensure the CurrentNext has been incremented only for the 'FF8080812AFBCB14012AFBD3E373001F' client |
(0046761) hgbot (developer) 2012-03-27 13:09 |
Repository: erp/devel/pi Changeset: e630342dafb1ebab21e85100c0aa082a27c97ffd Author: Sandra Huguet <sandra.huguet <at> openbravo.com> Date: Thu Mar 22 12:34:56 2012 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/e630342dafb1ebab21e85100c0aa082a27c97ffd [^] Fixed issue 16417 Incremets the sequence number at correct form in Ad_Sequence_Doc --- M src-db/database/model/functions/AD_SEQUENCE_DOC.xml --- |
(0046762) vmromanos (viewer) 2012-03-27 13:09 |
code review + testing OK |
(0047238) hudsonbot (viewer) 2012-04-02 06:12 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/7814864461ac [^] Maturity status: Test |
![]() |
|||
Date Modified | Username | Field | Change |
2011-03-22 12:21 | Xpand-IT | New Issue | |
2011-03-22 12:21 | Xpand-IT | Assigned To | => adrianromero |
2011-03-22 12:21 | Xpand-IT | Modules | => Core |
2011-06-03 10:58 | dalsasua | Assigned To | adrianromero => dalsasua |
2011-07-20 18:16 | dalsasua | Assigned To | dalsasua => jonalegriaesarte |
2011-09-19 22:21 | psarobe | OBNetwork customer | => No |
2011-09-19 22:21 | psarobe | Status | new => scheduled |
2011-09-19 22:21 | psarobe | version | => pi |
2012-02-15 19:04 | iciordia | Assigned To | jonalegriaesarte => vmromanos |
2012-02-16 16:18 | vmromanos | Tag Attached: VMA-Reviewed | |
2012-03-22 11:39 | Sandrahuguet | Assigned To | vmromanos => Sandrahuguet |
2012-03-22 13:12 | Sandrahuguet | Note Added: 0046653 | |
2012-03-27 13:06 | vmromanos | Note Added: 0046760 | |
2012-03-27 13:09 | hgbot | Checkin | |
2012-03-27 13:09 | hgbot | Note Added: 0046761 | |
2012-03-27 13:09 | hgbot | Status | scheduled => resolved |
2012-03-27 13:09 | hgbot | Resolution | open => fixed |
2012-03-27 13:09 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/e630342dafb1ebab21e85100c0aa082a27c97ffd [^] |
2012-03-27 13:09 | vmromanos | Note Added: 0046762 | |
2012-03-27 13:09 | vmromanos | Status | resolved => closed |
2012-04-02 06:12 | hudsonbot | Checkin | |
2012-04-02 06:12 | hudsonbot | Note Added: 0047238 |
Copyright © 2000 - 2009 MantisBT Group |