exception handling processIt on MJournalBatch

This commit is contained in:
uthadehikaru 2012-04-11 08:26:47 +07:00
parent 9ff7002ff8
commit 6e1c0ba027
1 changed files with 4 additions and 1 deletions

View File

@ -474,7 +474,10 @@ public class MJournalBatch extends X_GL_JournalBatch implements DocAction
;
else
{
journal.processIt(DocAction.ACTION_Complete);
// added AdempiereException by Amir Sehan
if (!journal.processIt(DocAction.ACTION_Complete))
throw new AdempiereException("Failed Processing Document - " + journal);
// end added
journal.saveEx();
if (!DocAction.STATUS_Completed.equals(journal.getDocStatus()))
{