Quintiq file version 2.0
#parent: #root
Method GetManufacturedDateWithUIRestriction (
  Date componentdate,
  Date defaultdate
) as Date id:Method_DialogCreateEditActualPISPIP_GetManufacturedDateWithUIRestriction
{
  #keys: '[137862.0.1054986445]'
  Body:
  [*
    //if user can't see shelf life related attributes, pass in a defalut value
    
    value := componentdate;
    
    if( not MPDomainHandler.IsMemberOfGroup( Functionality::ID_ShelfLife() ) )
    {
      value := defaultdate;
    }
    
    return value;
  *]
}
