Skip to content

Commit

Permalink
MPPOrder: set DocStatus=CO before firing AFTER_COMPLETE
Browse files Browse the repository at this point in the history
else, the PPOrderChangedEvent.isJustCompleted() will always return false.
(i.e. on completion the newDocStatus=IP, oldDocStatus=DR)

#5423
  • Loading branch information
teosarca committed Aug 15, 2019
1 parent 765d4ff commit 7e2cbdd
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -285,6 +285,7 @@ public String completeIt()
// Update Document Status
// NOTE: we need to have it Processed=Yes before calling triggering AFTER_COMPLETE model validator event
setProcessed(true);
setDocStatus(IDocument.STATUS_Completed);
setDocAction(IDocument.ACTION_Close);

ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_AFTER_COMPLETE);
Expand Down

0 comments on commit 7e2cbdd

Please sign in to comment.