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