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:
parent
15601d7f2b
commit
4b68d9be64
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue