{runquery 1} {runquery 2}{runquery 3}
{translatestatictext 'Billing periods for the reservation of:'.{const language}} {field 1.guestname}
- {translatestatictext 'Type'.{const language}}
  {translatestatictext 'Start'.{const language}}
  {translatestatictext 'End'.{const language}}
  {translatestatictext 'Amount'.{const language}}
  {translatestatictext 'Daily Amount'.{const language}}
  {translatestatictext 'F/P'.{const language}}
  {translatestatictext 'Invoice Date'.{const language}}
  {translatestatictext 'Posted'.{const language}}
  {translatestatictext 'Voided'.{const language}}
{forall 2}
- {dif {field 2.ylsp_manual}=0} {translatestatictext 'A'.{const language}}{/dif}{else} {translatestatictext 'M'.{const language}}{/else}
  {field 2.ylsp_start}
  {field 2.ylsp_end}
  {field 2.ylsp_amount} {field 3.currency}
  {field 2.dailyamount} {field 3.currency}
  {dif {field 2.ylsp_partial}=0} {translatestatictext 'Full'.{const language}}{/dif}{else} {translatestatictext 'Partial'.{const language}}{/else}
  {dif {field 2.zinv_date.0}=0} {/dif}{else}{field 2.zinv_date}{/else}
  {field 2.gross_amount} {field 3.currency} ({field 2.net_amount} {field 3.currency})
  {dif {field 2.zinvvoided.0}=0} {/dif}{else}{translatestatictext 'Voided'.{const language}}{/else}
{/forall}