MOrder: improved exception handling for code introduced in rev. 7157 ( http://adempiere.svn.sourceforge.net/adempiere/?rev=7157&view=rev )

This commit is contained in:
teo_sarca 2008-11-24 14:56:37 +00:00
parent 15601d7f2b
commit 4b68d9be64
1 changed files with 2 additions and 10 deletions

View File

@ -1956,11 +1956,7 @@ public class MOrder extends X_C_Order implements DocAction
return false; return false;
/* globalqss - 2317928 - Reactivating/Voiding order must reset posted */ /* globalqss - 2317928 - Reactivating/Voiding order must reset posted */
int no = MFactAcct.delete(MOrder.Table_ID, getC_Order_ID(), get_TrxName()); MFactAcct.deleteEx(MOrder.Table_ID, getC_Order_ID(), get_TrxName());
if (no < 0) {
m_processMsg = "Cannot delete order accounting";
return false;
}
setPosted(false); setPosted(false);
// After Void // After Void
@ -2247,11 +2243,7 @@ public class MOrder extends X_C_Order implements DocAction
} }
/* globalqss - 2317928 - Reactivating/Voiding order must reset posted */ /* globalqss - 2317928 - Reactivating/Voiding order must reset posted */
int no = MFactAcct.delete(MOrder.Table_ID, getC_Order_ID(), get_TrxName()); MFactAcct.deleteEx(MOrder.Table_ID, getC_Order_ID(), get_TrxName());
if (no < 0) {
m_processMsg = "Cannot delete order accounting";
return false;
}
setPosted(false); setPosted(false);
// After reActivate // After reActivate