<add-to-body>
  <!--PRIOR YEAR-->
  <section tag-value="uiHooks.TagFactory.Commands.LaunchDynamicDataDialog('Disclosure|RelatedPartyTransactions|DACG')">
    <table base-style="Table Text">
      <column-details column-number="1" free-space="100" />
      <column-details column-number="2" width="24" outer-left-border-clearance="3" outer-right-border-clearance="-1" align="bottom-right" />
      <column-details column-number="3" width="24" outer-left-border-clearance="3" outer-right-border-clearance="-1" align="bottom-right" condition="reporting.queries.client.lookupaccountingperioddata('Disclosure|RelatedPartyTransactions|DACG|Directors|Transactionswithdirectors|*|Transactionswithdirectors|Transactionswithdirectors|TransactionswithdirectorsCurrent|Rows|*:filter[Advancestodirector|End (Prior Period)!=null]', null, true).Count&gt;0" />
      <column-details column-number="4" width="24" outer-left-border-clearance="3" outer-right-border-clearance="-1" align="bottom-right" condition="reporting.queries.client.lookupaccountingperioddata('Disclosure|RelatedPartyTransactions|DACG|Directors|Transactionswithdirectors|*|Transactionswithdirectors|Transactionswithdirectors|TransactionswithdirectorsCurrent|Rows|*:filter[Repaymentsbydirector|End (Prior Period)!=null]', null, true).Count&gt;0" />
      <column-details column-number="5" width="24" outer-left-border-clearance="3" outer-right-border-clearance="-1" align="bottom-right" condition="reporting.queries.client.lookupaccountingperioddata('Disclosure|RelatedPartyTransactions|DACG|Directors|Transactionswithdirectors|*|Transactionswithdirectors|Transactionswithdirectors|TransactionswithdirectorsCurrent|Rows|*:filter[Otherpaymentstocompany|End (Prior Period)!=null]', null, true).Count&gt;0" />
      <column-details column-number="6" width="24" outer-left-border-clearance="3" outer-right-border-clearance="-1" align="bottom-right" condition="reporting.queries.client.lookupaccountingperioddata('Disclosure|RelatedPartyTransactions|DACG|Directors|Transactionswithdirectors|*|Transactionswithdirectors|Transactionswithdirectors|TransactionswithdirectorsCurrent|Rows|*:filter[WrittenOff|End (Prior Period)!=null]', null, true).Count&gt;0" />
      <column-details column-number="7" width="24" outer-left-border-clearance="3" outer-right-border-clearance="-1" align="bottom-right" condition="reporting.queries.client.lookupaccountingperioddata('Disclosure|RelatedPartyTransactions|DACG|Directors|Transactionswithdirectors|*|Transactionswithdirectors|Transactionswithdirectors|TransactionswithdirectorsCurrent|Rows|*:filter[Waived|End (Prior Period)!=null]', null, true).Count&gt;0" />
      <column-details column-number="8" width="24" outer-left-border-clearance="3" outer-right-border-clearance="-1" align="bottom-right" />
      <table-row base-style="Value Column Heading">
        <table-cell align="bottom-left">
          <data>
				reportHelper.PriorPeriod.EndDate.Value.Year
        </data>
        </table-cell>
        <table-cell>
          <para width="100%" base-runtime-style="ColumnHeaderAlignmentManualTableP1" inner-right-border-clearance="-2" smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">At <ws /><data>reportHelper.PriorPeriod.StartDate.Value.ToString('d MMMM yyyy')</data><br /><inline condition="ShowBSScaling"><data>BSScalingE2P1</data></inline></para>
        </table-cell>
        <table-cell>
          <para width="100%" base-runtime-style="ColumnHeaderAlignmentManualTableP1" inner-right-border-clearance="-2" smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">           Advances to <ws/><data>DirectorDescription</data><br /><inline condition="ShowBSScaling"><data>BSScalingE2P1</data></inline></para>
        </table-cell>
        <table-cell>
          <para width="100%" base-runtime-style="ColumnHeaderAlignmentManualTableP1" inner-right-border-clearance="-2" smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">            Repayments by <ws/><data>DirectorDescription</data><br /><inline condition="ShowBSScaling"><data>BSScalingE2P1</data></inline></para>
        </table-cell>
        <table-cell>
          <para width="100%" base-runtime-style="ColumnHeaderAlignmentManualTableP1" inner-right-border-clearance="-2" smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">            Other payments made to <ws/><data>CorporateDescription</data><ws/> by <ws/><data>DirectorDescription</data><br /><inline condition="ShowBSScaling"><data>BSScalingE2P1</data></inline></para>
        </table-cell>
        <table-cell>
          <para width="100%" base-runtime-style="ColumnHeaderAlignmentManualTableP1" inner-right-border-clearance="-2" smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">            Written off<br /><inline condition="ShowBSScaling"><data>BSScalingE2P1</data></inline></para>
        </table-cell>
        <table-cell>
          <para width="100%" base-runtime-style="ColumnHeaderAlignmentManualTableP1" inner-right-border-clearance="-2" smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">            Waived<br /><inline condition="ShowBSScaling"><data>BSScalingE2P1</data></inline></para>
        </table-cell>
        <table-cell>
          <para width="100%" base-runtime-style="ColumnHeaderAlignmentManualTableP1" inner-right-border-clearance="-2" smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">At <ws /><data>reportHelper.PriorPeriod.EndDate.Value.ToString('d MMMM yyyy')</data><br /><inline condition="ShowBSScaling"><data>BSScalingE2P1</data></inline></para>
        </table-cell>
      </table-row>
      <table-row-iterator iterate-over="transactionsdirectorlistprior" instance-name="item" as="Digita.AccountsPro.BO.Client.DataStructure.VisitableItemHolder">
        <var name="TransactionsWithDirectors" pre="reporting.queries.client.lookupaccountingperioddata(item, '*|Transactionswithdirectors|Transactionswithdirectors|Transactionswithdirectorscurrent|Rows|*')" />
				<var name="Grouping" init="1" post="Grouping + 1" />
        <section>
          <table-row-iterator iterate-over="TransactionsWithDirectors" instance-name="item2" as="Digita.AccountsPro.BO.Client.DataStructure.VisitableItemHolder">
            <var name="currentItem" init="0" pre="currentItem + 1" />
            <var name="atstartofperiod" init="0m" pre="Convert.ToDecimal(reporting.queries.client.lookupaccountingperioddata(item2, '*|AtStartofPeriod|End (Prior Period)')[0].Value) + atstartofperiod" />
            <var name="advancestodirector" init="0m" pre="Convert.ToDecimal(reporting.queries.client.lookupaccountingperioddata(item2, '*|Advancestodirector|End (Prior Period)')[0].Value) + advancestodirector" />
            <var name="repaymentsbydirector" init="0m" pre="Convert.ToDecimal(reporting.queries.client.lookupaccountingperioddata(item2, '*|Repaymentsbydirector|End (Prior Period)')[0].Value) + repaymentsbydirector" />
            <var name="otherpaymentsmadetocompanybydirector" init="0m" pre="Convert.ToDecimal(reporting.queries.client.lookupaccountingperioddata(item2, '*|Otherpaymentstocompany|End (Prior Period)')[0].Value) + otherpaymentsmadetocompanybydirector" />
            <var name="writtenoff" init="0m" pre="Convert.ToDecimal(reporting.queries.client.lookupaccountingperioddata(item2, '*|WrittenOff|End (Prior Period)')[0].Value) + writtenoff" />
            <var name="waived" init="0m" pre="Convert.ToDecimal(reporting.queries.client.lookupaccountingperioddata(item2, '*|Waived|End (Prior Period)')[0].Value) + waived" />
            <var name="atendofperiod" init="0m" pre="Convert.ToDecimal(reporting.queries.client.lookupaccountingperioddata(item2, '*|AtEndofPeriod|End (Prior Period)')[0].Value) + atendofperiod" />
            <table-row xbrl-hypercube="bus:EntityOfficersHypercube" xbrl-dimensions="bus:EntityOfficersDimension=bus:AllEntityOfficersEntityOfficersTotalDefault,direp:X-SpecificAdvanceOrCreditDirectorsGroupingDimension=currentItem.ToString()" condition="reporting.queries.client.lookupaccountingperioddata(item2, '*|AtStartofPeriod|End (Prior Period)')[0].HasValue or reporting.queries.client.lookupaccountingperioddata(item2, '*|Advancestodirector|End (Prior Period)')[0].HasValue or reporting.queries.client.lookupaccountingperioddata(item2, '*|Repaymentsbydirector|End (Prior Period)')[0].HasValue or reporting.queries.client.lookupaccountingperioddata(item2, '*|Otherpaymentstocompany|End (Prior Period)')[0].HasValue">
              <table-cell>
                <para para-alignment="Left" smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }" xbrl-concept="direp:DescriptionSpecificAdvanceOrCreditItsConditionsIndicativeInterestRateDirectors" xbrl-period="PriorPeriod">
                  <data>reporting.queries.client.lookupaccountingperioddata(item2, '*|RateAndConditions|Value')[0].Value</data>
                </para>
              </table-cell>
              <table-cell base-style="Table Values">
                <para smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }" xbrl-concept="direp:AmountSpecificAdvanceOrCreditDirectors" xbrl-period="StartPriorPeriod">
                  <data>reporting.queries.client.lookupaccountingperioddata(item2, '*|AtStartofPeriod|End (Prior Period)')[0].Value / Scaling</data>
                </para>
              </table-cell>
              <table-cell base-style="Table Values">
                <para smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }" xbrl-concept="direp:AmountSpecificAdvanceOrCreditMadeInPeriodDirectors" xbrl-period="PriorPeriod">
                  <data>reporting.queries.client.lookupaccountingperioddata(item2, '*|Advancestodirector|End (Prior Period)')[0].Value / Scaling</data>
                </para>
              </table-cell>
              <table-cell base-style="Table Values">
                <para smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }" xbrl-concept="direp:AmountSpecificAdvanceOrCreditRepaidInPeriodDirectors" xbrl-period="PriorPeriod">
                  <data>reporting.queries.client.lookupaccountingperioddata(item2, '*|Repaymentsbydirector|End (Prior Period)')[0].Value / Scaling</data>
                </para>
              </table-cell>
              <table-cell base-style="Table Values">
                <para smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">
                  <data>reporting.queries.client.lookupaccountingperioddata(item2, '*|Otherpaymentstocompany|End (Prior Period)')[0].Value / Scaling</data>
                </para>
              </table-cell>
              <table-cell base-style="Table Values">
                <para smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">
                  <data>reporting.queries.client.lookupaccountingperioddata(item2, '*|WrittenOff|End (Prior Period)')[0].Value / Scaling</data>
                </para>
              </table-cell>
              <table-cell base-style="Table Values">
                <para smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">
                  <data>reporting.queries.client.lookupaccountingperioddata(item2, '*|Waived|End (Prior Period)')[0].Value / Scaling</data>
                </para>
              </table-cell>
              <table-cell base-style="Table Values">
                <para smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }" xbrl-concept="direp:AmountSpecificAdvanceOrCreditDirectors" xbrl-period="EndPriorPeriod">
                  <data>reporting.queries.client.lookupaccountingperioddata(item2, '*|AtEndofPeriod|End (Prior Period)')[0].Value / Scaling</data>
                </para>
              </table-cell>
            </table-row>
            <table-row condition="currentItem = TransactionsWithDirectors.Count and TransactionsWithDirectors.Count &gt; 1">
              <table-cell><para></para></table-cell>
              <table-cell base-style="Grand Total And Overline">
                <para smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">
                  <data>atstartofperiod / Scaling</data>
                </para>
              </table-cell>
              <table-cell base-style="Grand Total And Overline">
                <para smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">
                  <data>advancestodirector / Scaling</data>
                </para>
              </table-cell>
              <table-cell base-style="Grand Total And Overline">
                <para smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">
                  <data>repaymentsbydirector / Scaling</data>
                </para>
              </table-cell>
              <table-cell base-style="Grand Total And Overline">
                <para smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">
                  <data>otherpaymentsmadetocompanybydirector / Scaling</data>
                </para>
              </table-cell>
              <table-cell base-style="Grand Total And Overline">
                <para smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">
                  <data>writtenoff / Scaling</data>
                </para>
              </table-cell>
              <table-cell base-style="Grand Total And Overline">
                <para smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">
                  <data>waived / Scaling</data>
                </para>
              </table-cell>
              <table-cell base-style="Grand Total And Overline">
                <para smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }">
                  <data>atendofperiod / Scaling</data>
                </para>
              </table-cell>
            </table-row>
            <table-row condition="currentItem = TransactionsWithDirectors.Count and TransactionsWithDirectors.Count = 1">
              <table-cell><para></para></table-cell>
              <table-cell base-style="Grand Total Values" smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }"><para></para></table-cell>
              <table-cell base-style="Grand Total Values" smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }"><para></para></table-cell>
              <table-cell base-style="Grand Total Values" smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }"><para></para></table-cell>
              <table-cell base-style="Grand Total Values" smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }"><para></para></table-cell>
              <table-cell base-style="Grand Total Values" smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }"><para></para></table-cell>
              <table-cell base-style="Grand Total Values" smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }"><para></para></table-cell>
              <table-cell base-style="Grand Total Values" smart-tag="new ISmartTag[] { uiHooks.SmartTagFactory.EditParagraph, uiHooks.SmartTagFactory.DeleteParagraph }"><para></para></table-cell>
            </table-row>
          </table-row-iterator>
        </section>
        <table-row>
          <table-cell><para></para></table-cell>
          <table-cell><para></para></table-cell>
          <table-cell><para></para></table-cell>
          <table-cell><para></para></table-cell>
          <table-cell><para></para></table-cell>
        </table-row>
      </table-row-iterator>
    </table>
  </section>
  <para></para>
  <table>
    <table-row>
      <table-cell></table-cell>
    </table-row>
  </table>
</add-to-body>