{runquery 1} {runsubquery 2.1.ybed_id} {runsubquery 4.1.ybed_id}
- {translatestatictext 'Bed'.{const language}}
  {field 1.ybed_shortdesc}
- {translatestatictext 'Room'.{const language}}
  {field 1.yrms_shortdesc}
- {translatestatictext 'Status'.{const language}}
  {field 1.yhks_longdesc}
{dif {field 4.YRES_ID.0}=0}{/dif} {else}
- {translatestatictext 'Time on Q'.{const language}}
  {field 4.TimeonQ} {dif '{field 4.vip}'=''}{/dif}{else} ({field 4.vip}){/else}
{/else}
- {translatestatictext 'Name'.{const language}}
  {dif '{field 2.guestname}'=''}{/dif} {else} {field 2.guestname} {/else} {dif '{field 2.vip}'=''}{/dif}{else}({field 2.vip}){/else}
- {translatestatictext 'Arrival'.{const language}}
  {field 2.arr}
- {translatestatictext 'Departure'.{const language}}
  {field 2.dep}
- {translatestatictext 'Res. No.'.{const language}}
  {dif {field 2.Yres_id.0}=0}{/dif}{else}{field 2.Yres_id} {/else}
{dif '{field 2.Specials}'=''}{/dif}{else}
- {translatestatictext 'Specials'.{const language}}
  {field 2.Specials}
{/else} {dif {field 2.EXP.0}=1} {runsubquery 3.1.ybed_id}
- {translatestatictext 'Expected bed move'.{const language}} {dif {field 3.FROM_YBED_ID}={field 1.YBED_ID}}{translatestatictext 'to'.{const language}} {field 3.TOBED}{/dif}{else}{translatestatictext 'from'.{const language}} {field 3.FROMBED}{/else}
{/dif} {dif {field 2.DONE.0}=1} {runsubquery 3.1.ybed_id}
- {translatestatictext 'Completed bed move'.{const language}} {dif {field 3.FROM_YBED_ID}={field 1.YBED_ID}}{translatestatictext 'to'.{const language}} {field 3.TOBED}{/dif}{else}{translatestatictext 'from'.{const language}} {field 3.FROMBED}{/else}
{/dif}