Quintiq file version 2.0
|
#parent: #root
|
Method SynchronizeLocation
|
{
|
Description: 'Get GIS location for unit'
|
TextBody:
|
[*
|
// vmpm Sep-22-2011 (created)
|
// Sean 16/6
|
if( this.GISCountryCode() <> '' and this.GISCity() <> '' )
|
{
|
if( isnull( this.GIS_UnitAddress() ) )
|
{
|
this.GIS_UnitAddress( relnew );
|
}
|
}
|
else
|
{
|
if( not isnull( this.GIS_UnitAddress() ) )
|
{
|
this.GIS_UnitAddress( relflush );
|
}
|
}
|
|
if( not isnull( this.GIS_UnitAddress() ) )
|
{
|
this.GIS_UnitAddress().Synchronize();
|
}
|
*]
|
}
|