IDEMPIERE-223 Document Processing Is Neglecting Error on Model Validator - fix to Allocation
http://jira.idempiere.com/browse/IDEMPIERE-223
This commit is contained in:
parent
c66c713158
commit
88423a597c
|
@ -738,7 +738,8 @@ public class Allocation
|
||||||
// Should start WF
|
// Should start WF
|
||||||
if (alloc.get_ID() != 0)
|
if (alloc.get_ID() != 0)
|
||||||
{
|
{
|
||||||
alloc.processIt(DocAction.ACTION_Complete);
|
if (!alloc.processIt(DocAction.ACTION_Complete))
|
||||||
|
throw new AdempiereException("Cannot complete allocation: " + alloc.getProcessMsg());
|
||||||
alloc.saveEx();
|
alloc.saveEx();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue