IDEMPIERE-4747 Pass PO object from MWFProcess to MWFActivity (#646)
Fix unit test error.
This commit is contained in:
parent
cb53fbcce0
commit
b22ceeabdf
|
@ -369,6 +369,11 @@ public class DocumentEngine implements DocAction
|
|||
continue;
|
||||
@SuppressWarnings("unused")
|
||||
String ignoreError = DocumentEngine.postImmediate(docafter.getCtx(), docafter.getAD_Client_ID(), docafter.get_Table_ID(), docafter.get_ID(), true, docafter.get_TrxName());
|
||||
if (!Util.isEmpty(ignoreError, true)) {
|
||||
log.warning("Error posting " + docafter + ". Error="+ignoreError);
|
||||
} else {
|
||||
docafter.load(docafter.get_TrxName());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -282,6 +282,7 @@ public class MatchPOTest extends AbstractTestCase {
|
|||
assertFalse(info.isError(), info.getSummary());
|
||||
invoice.load(getTrxName());
|
||||
assertEquals(DocAction.STATUS_Completed, invoice.getDocStatus());
|
||||
invoice.getDocsPostProcess().clear();
|
||||
|
||||
info = MWorkflow.runDocumentActionWorkflow(invoice, DocAction.ACTION_Reverse_Accrual);
|
||||
assertFalse(info.isError(), info.getSummary());
|
||||
|
|
Loading…
Reference in New Issue