diff --git a/org.adempiere.base.process/src/org/compiere/process/ExpenseSOrder.java b/org.adempiere.base.process/src/org/compiere/process/ExpenseSOrder.java index 55b339ab55..a60b9852d6 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ExpenseSOrder.java +++ b/org.adempiere.base.process/src/org/compiere/process/ExpenseSOrder.java @@ -270,7 +270,10 @@ public class ExpenseSOrder extends SvrProcess if (m_order == null) return; m_order.setDocAction(DocAction.ACTION_Prepare); - m_order.processIt(DocAction.ACTION_Prepare); + if (!m_order.processIt(DocAction.ACTION_Prepare)) { + log.warning("Order Process Failed: " + m_order + " - " + m_order.getProcessMsg()); + throw new IllegalStateException("Order Process Failed: " + m_order + " - " + m_order.getProcessMsg()); + } if (!m_order.save()) throw new IllegalStateException("Cannot save Order"); m_noOrders++;