{runquery 1}{runsubquery 2.1.xcms_id}{runsubquery 4.1.xcms_id}{runquerywithparameter 5.parameter.{userid}} {runquery 6} {runquery 7}
{translatestatictext 'Guest Recognition'.{const language}}
- {translatestatictext 'Name'.{const language}}
  {field 1.name2}
{dif '{field 1.VipCode}'=''}{/dif}{else}
- {translatestatictext 'VIP Code'.{const language}}
  {field 1.VipCode}
{/else} {dif '{field 1.rfm}'=''}{/dif}{else}
- {translatestatictext 'RFM Info'.{const language}}
  {field 1.rfm}
{/else}
- {translatestatictext 'Address'.{const language}}
  {field 2.address}
- {translatestatictext 'First Arr. & Last Dep.'.{const language}}
  {dif '{field 1.FirstArrivalDate}'=''} {/dif}{else}{field 1.FirstArrivalDate}{/else}
  {dif '{field 1.LastStayDepDate}'=''} {/dif}{else}{field 1.LastStayDepDate}{/else}
- {translatestatictext 'Stays'.{const language}}
  {dif {field 1.IndividualStaysSoFar.0}=0} {/dif}{else}{field 1.IndividualStaysSoFar} {/else}
- {translatestatictext 'Last Room & Rate'.{const language}}
  {dif '{field 1.LastStayRoom}'=''} {/dif}{else}{field 1.LastStayRoom}{/else}
  {dif '{field 1.LastStayConf_Rate}'=''} {/dif}{else}{field 1.LastStayConf_Rate}{/else}
- {translatestatictext 'Total Revenue'.{const language}}
  {field 1.TotalShisRev} {field 7.currency}
- {translatestatictext 'Cancellations'.{const language}}
  {dif {field 1.CancellationsSoFar.0}=0} {/dif}{else}{field 1.CancellationsSoFar}{/else}
- {translatestatictext 'Preferred Rooms'.{const language}}
  {dif '{field 1.PreferredRooms}'=''} {/dif}{else}{field 1.PreferredRooms}{/else}
- {translatestatictext 'Preferred Room type'.{const language}}
  {dif '{field 1.PreferredRoomType}'=''} {/dif}{else}{field 1.PreferredRoomType}{/else}
- {translatestatictext 'Room Features'.{const language}}
  {dif '{field 1.FEATURES}'=''} {/dif}{else}{field 1.FEATURES}{/else}
- {translatestatictext 'Interest'.{const language}}
  {dif '{field 1.INTEREST}'=''} {/dif}{else}{field 1.INTEREST}{/else}
- {translatestatictext 'Specials'.{const language}}
  {dif '{field 1.SPECIALS}'=''} {/dif}{else}{field 1.SPECIALS}{/else}
{dif {field 1.NoOfComments.0}=0}
- {translatestatictext 'Guest Comments'.{const language}}
{/dif}{else}
- {translatestatictext 'Guest Comments'.{const language}}
  {field 1.NoOfComments}
{/else} {dif '{field 1.AnsweredQuestionnaires}'=''}{/dif}{else}
- {translatestatictext 'Completed Questionaires'.{const language}}
  {field 1.AnsweredQuestionnaires} {dif {field 1.AnsweredQuestionnaires} > 0}{/dif}
{/else}
- {translatestatictext 'Notes'.{const language}}
  {forall 4} {dif ({field 4.xcnc_restriction.0}=1) and ({field 5.RestrictedNotesAllowed.0}=0)}{/dif}{else}
  {field 4.XCNC_Shortdesc}:
  {dif '{field 4.XCNO_Notes}'=''} {/dif}{else}{field 4.XCNO_Notes}{/else}
  {/else} {/forall}
- {translatestatictext 'Birthday'.{const language}}
  {dif '{field 1.Birthdate}'=''} {/dif}{else}{field 1.Birthdate}{/else}
{dif {sublicence TableReservation}=false}{/dif}{else}
- {translatestatictext 'Preferred Table / Restaurant'.{const language}}
  {dif (('{field 1.PREF_TABLES_SHORT}'='') and ('{field 1.PREF_RESTAURANTS_SHORT}'=''))} {/dif}{else}{dif '{field 1.PREF_TABLES_SHORT}'=''}{/dif}{else}{field 1.PREF_TABLES_LONG}; {/else}{field 1.PREF_RESTAURANTS_LONG}{/else}
{/else} {dif '{globalsetting FamilyWizardEnabled}'='0'}{/dif}{else}
- {translatestatictext 'Partner Name & Birthday'.{const language}}
  {dif (('{field 1.Partner_Name2}'='') and ('{field 1.Partner_Birthdate}'=''))} {/dif}{else}{field 1.Partner_Name2} - {field 1.Partner_Birthdate}{/else}
- {translatestatictext 'Anniversary'.{const language}}
  {dif '{field 1.Weddingdate}'=''} {/dif}{else}{field 1.Weddingdate}{/else}
- {translatestatictext 'Children'.{const language}}
  {dif {field 1.ChildrenCount.0}=0} {/dif}{else}{field 1.ChildrenCount}{/else}
{/else} {dif {globalsetting UseBellavita}=0}{/dif}{else}{runsubquery 3.1.xcms_id}
- {translatestatictext 'Last Spa Booking'.{const language}}
  {field 3.LastSpaBooking}
{/else} {dif '{field 6.xprg_id.0}'='0'}{/dif}{else}
- {translatestatictext 'Best Western Rewards'.{const language}}
{forall 6}
- {translatestatictext 'Membership Number'.{const language}}
  {field 6.xmnr_Value}
- {translatestatictext 'Membership Level'.{const language}}
  {field 6.xmnr_Level}
- {translatestatictext 'Enrollment Source'.{const language}}
  {field 6.xprg_EnrollmentSource}
- {translatestatictext 'Enrollment Date'.{const language}}
  {field 6.xprg_EnrollmentDate}
- {translatestatictext 'Nights to next Tier'.{const language}}
  {field 6.xprg_NightsToNextTier}
- {translatestatictext 'Point Balance'.{const language}}
  {field 6.xprg_PointsBalance}
- {translatestatictext 'Program Code'.{const language}}
  {field 6.xprg_ProgramCode}
- {translatestatictext 'Tier since Date'.{const language}}
  {field 6.xprg_TierSinceDate}
- {translatestatictext 'Tier Expiry Date'.{const language}}
  {field 6.xprg_TierExpiryDate}
- {translatestatictext 'Nights to maintain Status'.{const language}}
  {field 6.xprg_NightsToMaintainStatus}
- {translatestatictext 'Nights stayed in Year'.{const language}}
  {field 6.xprg_NightsStayedInYear}
- {translatestatictext 'Points to maintain Status'.{const language}}
  {field 6.xprg_PointsToMaintainStatus}
- {translatestatictext 'Stays to maintain Status'.{const language}}
  {field 6.xprg_StaysToMaintainStatus}
- {translatestatictext 'Next loyal Level'.{const language}}
  {field 6.xprg_NextLoyalLevel}
- {translatestatictext 'Points to next Tier'.{const language}}
  {field 6.xprg_PointsToNextTier}
- {translatestatictext 'Stays to next Tier'.{const language}}
  {field 6.xprg_StaysToNextTier}
{/forall} {/else}