{runquery 1} {forall 1}
{field 1.Accountname} - {field 1.Accountnumber}
{runsubquery 2.1.aacc_id} {forall 2}

- {field 2.ReminderStatement}
{runsubquery 3.2.stmtkey} {forall 3}
- {translatestatictext 'Invoice No:'.{const language}}
  {dif '{field 3.INVOICENUMBER}'=''} {/dif}{else}{field 3.INVOICENUMBER}{/else}
  {translatestatictext 'Invoice Date:'.{const language}}
  {field 3.INVOICEDATE}
  {translatestatictext 'Days open:'.{const language}}
  {field 3.AGEDAYS}
  {translatestatictext 'Open Balance:'.{const language}}
  {dif '{field 3.FOPENAMOUNT}'>1000}{/dif}{else}{/else}{field 3.FOPENAMOUNT}
{/forall}

{/forall} {/forall}