Skip to content

Commit

Permalink
HUEditorRow.isHUPlanningReceiptOwnerPM()
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Jul 22, 2017
1 parent 21e522b commit 3c0645e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/de/metas/ui/web/handlingunits/HUEditorRow.java
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,17 @@ public I_M_HU getM_HU()
}
return InterfaceWrapperHelper.create(Env.getCtx(), huId, I_M_HU.class, ITrx.TRXNAME_ThreadInherited);
}

public boolean isHUPlanningReceiptOwnerPM()
{
// TODO: cache it or better it shall be provided when the row is created
final I_M_HU hu = getM_HU();
if(hu == null)
{
return false;
}
return hu.isHUPlanningReceiptOwnerPM();
}

public String getValue()
{
Expand Down

0 comments on commit 3c0645e

Please sign in to comment.