details:   https://code.openbravo.com/erp/stable/2.50/rev/68d0babe99f3
changeset: 9778:68d0babe99f3
user:      Javier Etxarri <javier.echarri <at> openbravo.com>
date:      Tue Jan 10 17:56:58 2012 +0100
summary:   Fixes issue 19115: to unprocess a bank statement, error is returned, 
but the debt payments are not cancelled

diffstat:

 src-db/database/model/functions/C_BANKSTATEMENT_POST.xml |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r ac7077572bf2 -r 68d0babe99f3 
src-db/database/model/functions/C_BANKSTATEMENT_POST.xml
--- a/src-db/database/model/functions/C_BANKSTATEMENT_POST.xml  Tue Jan 10 
12:36:48 2012 +0100
+++ b/src-db/database/model/functions/C_BANKSTATEMENT_POST.xml  Tue Jan 10 
17:56:58 2012 +0100
@@ -216,7 +216,7 @@
     exception when others then
      ROLLBACK;
      v_ResultStr:='@ErrorUnoprocessingBS@ Line:' ||CUR_MANAGEMENTLINES.LINE|| 
': ' || SQLERRM || ' - ' || v_Message;
-     DBMS_OUTPUT.PUT_LINE(v_ResultStr) ;
+     RAISE_APPLICATION_ERROR(-20000,v_ResultStr) ;
      AD_UPDATE_PINSTANCE(p_PInstance_ID, NULL, 'N', 0, v_ResultStr) ;
      RETURN;
     end;

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to