exception handling processIt on AllocationAuto.java
This commit is contained in:
parent
4621e9809b
commit
ef82f295c3
|
@ -828,8 +828,9 @@ public class AllocationAuto extends SvrProcess
|
||||||
if (m_allocation == null)
|
if (m_allocation == null)
|
||||||
return true;
|
return true;
|
||||||
boolean success = m_allocation.processIt(MAllocationHdr.DOCACTION_Complete);
|
boolean success = m_allocation.processIt(MAllocationHdr.DOCACTION_Complete);
|
||||||
if (success)
|
if (!success)
|
||||||
success = m_allocation.save();
|
throw new IllegalStateException("Allocation Process Failed "+ m_allocation.getDocumentNo() +
|
||||||
|
" " + m_allocation.getProcessMsg());
|
||||||
else
|
else
|
||||||
m_allocation.saveEx();
|
m_allocation.saveEx();
|
||||||
addLog(0, m_allocation.getDateAcct(), null, m_allocation.getDescription());
|
addLog(0, m_allocation.getDateAcct(), null, m_allocation.getDescription());
|
||||||
|
|
Loading…
Reference in New Issue