<?xml version="1.0" encoding="UTF-8" ?>
<DespatchAdvice:DespatchAdvice
    xmlns:DespatchAdvice="urn:oasis:names:specification:ubl:schema:xsd:DespatchAdvice-2"
    xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
    xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
  <cbc:ID>{picking_name}</cbc:ID>
  <cbc:IssueDate>2020-11-16</cbc:IssueDate>
  <cbc:DespatchAdviceTypeCode>scheduled</cbc:DespatchAdviceTypeCode>
  <cac:OrderReference>
  </cac:OrderReference>
  <cac:DespatchSupplierParty>
    <cac:Party>
      <cac:PartyIdentification>
        <cbc:ID schemeName="BE:VAT">BE0477472701</cbc:ID>
      </cac:PartyIdentification>
      <cac:PostalAddress>
        <cbc:StreetName>STREET</cbc:StreetName>
        <cbc:CityName>CITY</cbc:CityName>
        <cbc:PostalZone>0000</cbc:PostalZone>
        <cac:Country>
          <cbc:IdentificationCode>BE</cbc:IdentificationCode>
        </cac:Country>
      </cac:PostalAddress>
      <cac:PartyLegalEntity>
        <cbc:RegistrationName>S.A. SOCIETY</cbc:RegistrationName>
      </cac:PartyLegalEntity>
    </cac:Party>
  </cac:DespatchSupplierParty>
  <cac:DeliveryCustomerParty>
    <cac:Party>
      <cac:PartyIdentification>
        <cbc:ID schemeName="BE:VAT">BE0421801233</cbc:ID>
      </cac:PartyIdentification>
      <cac:PartyLegalEntity>
        <cbc:RegistrationName>COMPANY</cbc:RegistrationName>
      </cac:PartyLegalEntity>
    </cac:Party>
  </cac:DeliveryCustomerParty>
  <cac:Shipment>
    <cbc:ID>0987654321</cbc:ID>
    <cac:Delivery>
      <cac:EstimatedDeliveryPeriod>
        <cbc:EndDate>2020-11-17</cbc:EndDate>
      </cac:EstimatedDeliveryPeriod>
    </cac:Delivery>
  </cac:Shipment>
  <cac:DespatchLine>
    <cbc:ID>{line_1_id}</cbc:ID>
    <cbc:DeliveredQuantity unitCode="BG">{line_1_qty}</cbc:DeliveredQuantity>
    <cbc:OutstandingQuantity
            unitCode="BG"
        >{line_1_backorder_qty}</cbc:OutstandingQuantity>
    <cac:OrderLineReference>
      <cbc:LineID>{line_1_id}</cbc:LineID>
      <cac:OrderReference>
        <cbc:ID>{line_1_order_id}</cbc:ID>
      </cac:OrderReference>
    </cac:OrderLineReference>
    <cac:Item>
      <cbc:Name>PRODUCT1</cbc:Name>
      <cac:SellersItemIdentification>
        <cbc:ID>1234567</cbc:ID>
      </cac:SellersItemIdentification>
      <cac:ItemInstance>
        <cbc:BestBeforeDate>2022-03-31</cbc:BestBeforeDate>
        <cac:LotIdentification>
          <cbc:LotNumberID>1234890</cbc:LotNumberID>
        </cac:LotIdentification>
      </cac:ItemInstance>
    </cac:Item>
  </cac:DespatchLine>
    <cac:DespatchLine>
    <cbc:ID>{line_2_id}</cbc:ID>
    <cbc:DeliveredQuantity unitCode="C62">{line_2_qty}</cbc:DeliveredQuantity>
    <cac:OrderLineReference>
      <cbc:LineID>{line_2_id}</cbc:LineID>
      <cac:OrderReference>
        <cbc:ID>{line_2_order_id}</cbc:ID>
      </cac:OrderReference>
    </cac:OrderLineReference>
    <cac:Item>
      <cbc:Name>PRODUCT2</cbc:Name>
      <cac:SellersItemIdentification>
        <cbc:ID>2345678</cbc:ID>
      </cac:SellersItemIdentification>
      <cac:ItemInstance>
        <cbc:BestBeforeDate>2021-12-31</cbc:BestBeforeDate>
        <cac:LotIdentification>
          <cbc:LotNumberID>876540</cbc:LotNumberID>
        </cac:LotIdentification>
      </cac:ItemInstance>
    </cac:Item>
  </cac:DespatchLine>
</DespatchAdvice:DespatchAdvice>
