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