{runquery 1}{runsubquery 2.1.xcms_id} {runsubquery 3.1.xcms_id} {runsubquery 4.1.xcms_id}{runquery 5}{runsubquery 6.1.xcms_id}{runsubquery 7.1.xcms_id} {runsubquery 8.1.xcms_id}{runsubquery 9.1.xcms_id} {runsubquery 10.1.xcms_id} {runsubquery 11.1.xcms_id} {runsubquery 12.1.xcms_id} {runsubquery 13.1.xcms_id}{runsubquery 14.1.xcms_id}{runsubquery 15.1.xcms_id}{runsubquery 16.1.xcms_id} {runsubquery 17.1.xcms_id} {runsubquery 18.1.xcms_id} {runsubquery 19.1.xcms_id} {runsubquery 20.1.xcms_id} {runsubquery 21.1.xcms_id} {runsubquery 22.1.xcms_id} {runquery 23} {runsubquery 24.1.xcms_id} {runsubquery 25.1.xcms_id}{runsubquery 26.1.xcms_id}{runsubquery 27.1.xcms_id} {runquerywithparameter 28.parameter.{userid}}
- {translatestatictext 'Name'.{const language}}
  {field 1.xcms_name1}, {field 1.xcms_name3} {field 1.xcms_name2}
  {dif '{field 24.OrgHotel}'=''}{/dif}{else}
  {translatestatictext 'Created in'.{const language}} {field 24.OrgHotel}{/else}
{dif '{field 10.xpda_longdesc}'=''}{/dif}{else}
- {translatestatictext 'VIP Code'.{const language}}
  {field 10.xpda_longdesc}
{/else} {dif '{field 15.a}'=''}{/dif}{else}
- {translatestatictext 'Picture'.{const language}}
{/else} {dif '{field 1.xcid_position}'=''}{/dif}{else}
- {translatestatictext 'Position'.{const language}}
  {field 1.xcid_position}
{/else} {dif {field 1.xcms_active.0}=1}{/dif}{else}
- {translatestatictext 'Inactive'.{const language}}
  {translatestatictext 'Date:'.{const language}} {field 1.xcms_inacttime} {translatestatictext 'Reason:'.{const language}} {field 1.xcms_inactreason}
{/else} {dif('{field 1.xcms_creditstat}'='')}{/dif}{else}
- {translatestatictext 'Credit Status'.{const language}}
  {dif '{field 1.xcms_creditstat}'='B'} {translatestatictext 'Restricted'.{const language}} {dif '{field 1.xcms_credtime}'=''}{/dif} {else} {translatestatictext 'Date:'.{const language}} {field 1.xcms_credtime} {translatestatictext 'Reason:'.{const language}} {field 1.xcms_credreason} {/else}{/dif} {dif '{field 1.xcms_creditstat}'='C'} {translatestatictext 'Cash only'.{const language}} {translatestatictext 'Date:'.{const language}} {field 1.xcms_credtime} {translatestatictext 'Reason:'.{const language}} {field 1.xcms_credreason} {/dif} {dif '{field 1.xcms_creditstat}'='A'} {translatestatictext 'City Ledger Authorization'.{const language}} {translatestatictext 'Date:'.{const language}} {field 1.xcms_credtime} {translatestatictext 'Reason:'.{const language}} {field 1.xcms_credreason} {/dif}
{/else}
- {translatestatictext 'Address'.{const language}}
  {field 17.address}
{dif('{field 3.xcom_value}'='')}{/dif}{else}
- {translatestatictext 'Communication'.{const language}}
  {forall 3}
  {field 3.xcmt_longdesc}
  {dif {field 3.xcmt_type}=2} {field 3.xcom_value} {/dif}{else} {dif {field 3.xcmt_type}=1} {field 3.xcom_value} {/dif}{else} {field 3.xcom_value} {/else} {/else}
  {/forall}
{/else} {dif '{field 11.CompanyName}'=''}{/dif}{else}
- {translatestatictext 'Linked Companies'.{const language}}
  {forall 11} {field 11.CompanyName} {field 11.CompanyName2} {field 11.CompanyName3}
  {/forall}
{/else} {dif('{field 18.ContactLastName}'='')}{/dif}{else}
- {translatestatictext 'Linked Contacts'.{const language}}
  {forall 18}
  {field 18.XCLR_LONGDESC}
  {field 18.ComplString}
  {/forall}
{/else} {dif('{field 26.YRch_Shortdesc}'='')}{/dif}{else}
- {translatestatictext 'Rate Codes'.{const language}}
  {forall 26}{field 26.Yrch_ShortDesc} {field 26.Yrch_LongDesc}
  {/forall}
{/else} {dif {field 6.xcno_id.0}=0}{/dif}{else}
- {translatestatictext 'Notes'.{const language}}
  {forall 6} {dif ({field 6.xcnc_restriction.0}=1) and ({field 28.RestrictedNotesAllowed.0}=0)}{/dif}{else} {field 6.xcnc_shortdesc}: {field 6.xcno_notes}
  {/else} {/forall}
{/else}
- {translatestatictext 'Room Nights'.{const language}}
  {dif {field 5.Nights.0}=0}{/dif}{else} {/else}{dif {field 8.NumberofRoomnightssofar.0}=0}0{/dif}{else}{field 8.NumberofRoomnightssofar} {/else}
- {translatestatictext 'Adult Nights'.{const language}}
  {dif {field 9.NumberofAdultnightssofar.0}=0}0{/dif}{else} {field 9.NumberofAdultnightssofar}{/else}
- {translatestatictext 'Stays'.{const language}}
  {dif {field 9.IndividualStaysSoFar.0}=0}0{/dif}{else} {field 9.IndividualStaysSoFar}{/else}
- {translatestatictext 'Revenue'.{const language}}
  {field 7.Revenue} {field 23.Currency}
{dif '{field 5.YRES_EXPARRTIME.0}'='0'}{/dif}{else}
- {translatestatictext 'Next Reservation'.{const language}}
  {forall 5}
  {field 5.YRES_ID}
  {field 5.YRES_EXPARRTIME}
  {field 5.ycat_shortdesc}
  {/forall}
{/else} {dif '{field 19.ybom_arrival.0}'='0'}{/dif}{else}
- {translatestatictext 'Next Conference Bookings'.{const language}}
  {forall 19}
  {field 19.ybom_id}
  {field 19.ybom_arrival}
  {field 19.ybom_name}
  {/forall}
{/else}