details:   /erp/stable/2.50/rev/5bfe9f4aff42
changeset: 9106:5bfe9f4aff42
user:      Adrián Romero <adrianromero <at> openbravo.com>
date:      Tue Dec 21 13:30:15 2010 +0100
summary:   Fixes issue 0015202: Import Budget failure
One more point of failure has been fixed for the organization field

diffstat:

 src/org/openbravo/erpCommon/ad_process/ImportBudget_data.xsql |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 2cfb86a40d9e -r 5bfe9f4aff42 
src/org/openbravo/erpCommon/ad_process/ImportBudget_data.xsql
--- a/src/org/openbravo/erpCommon/ad_process/ImportBudget_data.xsql     Mon Dec 
20 16:37:10 2010 +0100
+++ b/src/org/openbravo/erpCommon/ad_process/ImportBudget_data.xsql     Tue Dec 
21 13:30:15 2010 +0100
@@ -242,7 +242,7 @@
         UPDATE I_BudgetLine 
         SET AD_OrgTrx_ID=(
           SELECT AD_Org_ID FROM AD_Org o
-          WHERE I_BudgetLine.OrgTrxIdent=AD_COLUMN_IDENTIFIER('AD_ORG', 
TO_CHAR(o.AD_Org_ID), ?)
+          WHERE I_BudgetLine.OrgTrxIdent=AD_COLUMN_IDENTIFIER('AD_ORG', 
TO_CHAR(o.AD_Org_ID), ?) AND o.AD_CLIENT_ID = ?
         )
         WHERE AD_OrgTrx_ID IS NULL
          AND OrgTrxIdent IS NOT NULL
@@ -252,6 +252,7 @@
     </Sql>
     <Parameter name="adlanguage"/>
     <Parameter name="ad_client_id"/>
+    <Parameter name="ad_client_id"/>
   </SqlMethod>
 
   <SqlMethod name="updateTrxOrgError" type="preparedStatement" 
connection="true" return="rowCount">

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to