{runquery 1} {runsubquery 2.1.yres_id}{runsubquery 3.1.yres_id}{runquery 4}
{translatestatictext 'Billing Information'.{const language}}
- {translatestatictext 'Balance'.{const language}}
  {field 2.TotAmount} {field 4.currency}
- {translatestatictext 'Window'.{const language}}
  {translatestatictext 'Amount'.{const language}}
  {translatestatictext 'Invoice to'.{const language}}
{forall 2}
- {field 2.zwin_window}
  {dif {field 2.winamount.0}=0}0.00 {field 4.currency}{/dif}{else}{field 2.winamount} {field 4.currency}{/else}
  {field 2.winName}
{/forall}
- {translatestatictext '1st Window'.{const language}}
- {translatestatictext 'Code'.{const language}}
  {translatestatictext 'Amount'.{const language}}
  {translatestatictext 'Date'.{const language}}
  {translatestatictext 'Department'.{const language}}
{forall 3}
- {field 3.ndesc}
  {dif {field 3.grossamount.0}=0}0.00 {field 4.currency}{/dif}{else}{field 3.grossamount} {field 4.currency}{/else}
  {field 3.dat}
  {field 3.ddesc}
{/forall}