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:
Carlos Ruiz 2012-04-04 21:39:28 -05:00
parent c66c713158
commit 88423a597c
1 changed files with 2 additions and 1 deletions

View File

@ -738,7 +738,8 @@ public class Allocation
// Should start WF
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();
}