{runquery 1} {runsubquery 2.1.yres_id}{runsubquery 3.1.yres_xcms_id}{runsubquery 4.1.yres_id}{runsubquery 5.1.yres_id} {runsubquery 6.1.yres_xcms_id}{runsubquery 7.1.yres_xcms_id}{runsubquery 8.1.yres_id}

{if ({field 1.yres_noavailreason})=(1)}
{translatestatictext 'Waitlist Reservation'.{const language}}
{/if}{else}{if ({field 1.yres_noavailreason})=(2)}
{translatestatictext 'Reservation Offer'.{const language}}
{/if}{else}
{translatestatictext 'Reservation'.{const language}}
{/else}{/else}
({field 1.yres_id}) for {field 1.xcms_name1} {field 1.xcms_name2} {field 1.xcms_name3}

{if ({field 4.ycxl_cancelorreinstate})=(1)}

{translatestatictext 'Cancelled'.{const language}}
{/if} {else}{/else} {if ({field 1.yres_noavailreason})=(1)}

{field 5.ywlp_longdesc} {translatestatictext 'Priority, Reason:'.{const language}} {field 5.ywlr_longdesc}, {field 5.WaitlistComm}

Info:{field 5.ywlt_text} {/if} {dif {field 7.xcno_id.0}=0}{/dif}{else}

{translatestatictext 'Notes'.{const language}} | {forall 7}{field 7.xcnc_longdesc}: {field 7.xcno_notes}
{/forall} {/else}

{if {field 8.zdco_id.0}=0}{/dif}{else}

{translatestatictext 'Billing Instructions'.{const language}} |

{translatestatictext 'Window'.{const language}} | {translatestatictext 'Room/Account'.{const language}} | {translatestatictext 'Target'.{const language}} | {translatestatictext 'Department Codes'.{const language}} |
{startloop Instructions}
{loopconst Window} | {loopconst Room} | {loopconst Target} | {loopconst DepCodes}

{/loop}
{/else}

{translatestatictext 'Arrival:'.{const language}} | {field 1.Arrivalday}, {field 1.arrivaldate} | {field 3.xadr_street1}
{translatestatictext 'Nights:'.{const language}} | {field 1.nights} | {field 3.xadr_zip} - {field 3.xadr_city}
{translatestatictext 'Departure:'.{const language}} | {field 1.Departureday}, {field 1.departuredate} |
| {field 2.ydet_noofrooms} {field 2.ycat_longdesc} |
{translatestatictext 'Room'.{const language}} | {field 2.yrms_shortdesc} |
{translatestatictext 'No. of Persons'.{const language}} | {field 2.ydet_adultno} {if ({field 2.ydet_adultno})=(1)} {translatestatictext 'Adult'.{const language}} {/if} {if ({field 2.ydet_adultno})>(1)} {translatestatictext 'Adults'.{const language}} {/if} |
{translatestatictext 'Market Code'.{const language}} | {field 2.xcma_longdesc} |
{translatestatictext 'Rate Code'.{const language}} | {field 2.yrch_longdesc} |
{translatestatictext 'Rate Amount'.{const language}} | {field 2.price} |

{if ({field 7.xcno_id})=()}{/if}{else}

{translatestatictext 'Notes'.{const language}} | {forall 7}{field 7.xcnc_longdesc}: {field 7.xcno_notes}

{/forall} {/else}