﻿<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>
  <entity name='llp_settlement'>
    <attribute name='llp_settlementid' />
    <attribute name='llp_name' />
    <attribute name='llp_amountpayable' />
    <attribute name='llp_amountrequested' />
    <attribute name='createdon' />
    <attribute name='statuscode' />
    <order descending='false' attribute='llp_name' />
    <link-entity name='llp_incident' to='llp_settlementid' from='llp_settlementid' alias='settlement' link-type='inner' visible='false'>
      <filter type='and'>
        <condition value='${incidentNr}' attribute='llp_incidentcode' operator='eq' />
      </filter>
    </link-entity>
  </entity>
</fetch>
