Skip to content

Commit

Permalink
minor but imho still important: only issue active HUs..
Browse files Browse the repository at this point in the history
528: Exception when opening PP Order issue / receipt

Task-Url: #528
  • Loading branch information
metas-ts committed Aug 3, 2017
1 parent 7e1dfb3 commit 5537da6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ else if (!selectedDocumentIds.isSingleDocumentId())
final DocumentId rowId = selectedDocumentIds.getSingleDocumentId();
final HUEditorRow row = HUEditorRow.cast(view.getById(rowId));

if(row.isHUStatusActive())
{
return ProcessPreconditionsResolution.reject("only active HUs");
}

if (row.isLU())
{
return ProcessPreconditionsResolution.accept();
Expand Down

0 comments on commit 5537da6

Please sign in to comment.