Quintiq file version 2.0
|
#parent: #root
|
Function CalcTimestampLastUpdated
|
{
|
TextBody:
|
[*
|
value := DateTime::MaxDateTime();
|
|
if( not isnull( this.LastActivity() ) )
|
{
|
value := this.LastActivity().End();
|
|
// Use the start time instead if the last activity end time is infinite(not been updated)
|
if( value.IsInfinite() )
|
{
|
value := this.LastActivity().Start();
|
}
|
}
|
|
this.TimestampLastUpdated( value );
|
*]
|
}
|