From 4b68d9be64e4832692ca76be610f26477138653e Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Mon, 24 Nov 2008 14:56:37 +0000 Subject: [PATCH] MOrder: improved exception handling for code introduced in rev. 7157 ( http://adempiere.svn.sourceforge.net/adempiere/?rev=7157&view=rev ) --- base/src/org/compiere/model/MOrder.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/base/src/org/compiere/model/MOrder.java b/base/src/org/compiere/model/MOrder.java index 9bc3e2e287..04b5b20d90 100644 --- a/base/src/org/compiere/model/MOrder.java +++ b/base/src/org/compiere/model/MOrder.java @@ -1956,11 +1956,7 @@ public class MOrder extends X_C_Order implements DocAction return false; /* globalqss - 2317928 - Reactivating/Voiding order must reset posted */ - int no = MFactAcct.delete(MOrder.Table_ID, getC_Order_ID(), get_TrxName()); - if (no < 0) { - m_processMsg = "Cannot delete order accounting"; - return false; - } + MFactAcct.deleteEx(MOrder.Table_ID, getC_Order_ID(), get_TrxName()); setPosted(false); // After Void @@ -2247,11 +2243,7 @@ public class MOrder extends X_C_Order implements DocAction } /* globalqss - 2317928 - Reactivating/Voiding order must reset posted */ - int no = MFactAcct.delete(MOrder.Table_ID, getC_Order_ID(), get_TrxName()); - if (no < 0) { - m_processMsg = "Cannot delete order accounting"; - return false; - } + MFactAcct.deleteEx(MOrder.Table_ID, getC_Order_ID(), get_TrxName()); setPosted(false); // After reActivate