<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
         xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
         xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
  <cbc:UBLVersionID>2.1</cbc:UBLVersionID>
  <cbc:CustomizationID>urn:novus-examples:restaurant-procure-to-pay:1.0</cbc:CustomizationID>
  <cbc:ID>INV-BAK-5001</cbc:ID>
  <cbc:IssueDate>2026-08-07</cbc:IssueDate>
  <cbc:DueDate>2026-09-06</cbc:DueDate>
  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
  <cbc:Note>Fictional test invoice. Three-way matched against PO-BAK-1001 and GRN-BAK-2001.</cbc:Note>
  <cbc:DocumentCurrencyCode>CAD</cbc:DocumentCurrencyCode>
  <cac:OrderReference><cbc:ID>PO-BAK-1001</cbc:ID></cac:OrderReference>
  <cac:DespatchDocumentReference><cbc:ID>GRN-BAK-2001</cbc:ID></cac:DespatchDocumentReference>
  <cac:AccountingSupplierParty>
    <cac:Party>
      <cac:PartyIdentification><cbc:ID schemeID="0088">0614141000012</cbc:ID></cac:PartyIdentification>
      <cac:PartyName><cbc:Name>Alder Wholesale</cbc:Name></cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>41 Alder Way</cbc:StreetName>
        <cbc:CityName>Halifax</cbc:CityName>
        <cbc:PostalZone>B3H 1A1</cbc:PostalZone>
        <cbc:CountrySubentity>NS</cbc:CountrySubentity>
        <cac:Country><cbc:IdentificationCode>CA</cbc:IdentificationCode></cac:Country>
      </cac:PostalAddress>
      <cac:PartyTaxScheme>
        <cbc:CompanyID>CA-BN-100000001</cbc:CompanyID>
        <cac:TaxScheme><cbc:ID>GST</cbc:ID></cac:TaxScheme>
      </cac:PartyTaxScheme>
      <cac:PartyLegalEntity><cbc:RegistrationName>Alder Wholesale</cbc:RegistrationName></cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingSupplierParty>
  <cac:AccountingCustomerParty>
    <cac:Party>
      <cac:PartyIdentification><cbc:ID schemeID="0088">0626004000012</cbc:ID></cac:PartyIdentification>
      <cac:PartyName><cbc:Name>Copper Oven Bakery</cbc:Name></cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>44 Copper Road</cbc:StreetName>
        <cbc:CityName>Halifax</cbc:CityName>
        <cbc:PostalZone>B3J 3C3</cbc:PostalZone>
        <cbc:CountrySubentity>NS</cbc:CountrySubentity>
        <cac:Country><cbc:IdentificationCode>CA</cbc:IdentificationCode></cac:Country>
      </cac:PostalAddress>
      <cac:PartyTaxScheme>
        <cbc:CompanyID>CA-BN-200000003</cbc:CompanyID>
        <cac:TaxScheme><cbc:ID>GST</cbc:ID></cac:TaxScheme>
      </cac:PartyTaxScheme>
      <cac:PartyLegalEntity><cbc:RegistrationName>Copper Oven Bakery</cbc:RegistrationName></cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingCustomerParty>
  <cac:PaymentTerms><cbc:Note>Net 30</cbc:Note></cac:PaymentTerms>
  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="CAD">8.27</cbc:TaxAmount>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="CAD">165.41</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="CAD">8.27</cbc:TaxAmount>
      <cac:TaxCategory>
        <cbc:ID>S</cbc:ID>
        <cbc:Percent>5.00</cbc:Percent>
        <cac:TaxScheme><cbc:ID>GST</cbc:ID></cac:TaxScheme>
      </cac:TaxCategory>
    </cac:TaxSubtotal>
  </cac:TaxTotal>
  <cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="CAD">165.41</cbc:LineExtensionAmount>
    <cbc:TaxExclusiveAmount currencyID="CAD">165.41</cbc:TaxExclusiveAmount>
    <cbc:TaxInclusiveAmount currencyID="CAD">173.68</cbc:TaxInclusiveAmount>
    <cbc:PayableAmount currencyID="CAD">173.68</cbc:PayableAmount>
  </cac:LegalMonetaryTotal>
  <cac:InvoiceLine>
    <cbc:ID>1</cbc:ID>
    <cbc:InvoicedQuantity unitCode="KGM">14</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="CAD">19.18</cbc:LineExtensionAmount>
    <cac:Item>
      <cbc:Name>Bread Flour</cbc:Name>
      <cac:BuyersItemIdentification><cbc:ID>ING-01</cbc:ID></cac:BuyersItemIdentification>
      <cac:SellersItemIdentification><cbc:ID>AW-ING-01</cbc:ID></cac:SellersItemIdentification>
      <cac:ClassifiedTaxCategory>
        <cbc:ID>S</cbc:ID>
        <cbc:Percent>5.00</cbc:Percent>
        <cac:TaxScheme><cbc:ID>GST</cbc:ID></cac:TaxScheme>
      </cac:ClassifiedTaxCategory>
    </cac:Item>
    <cac:Price><cbc:PriceAmount currencyID="CAD">1.37</cbc:PriceAmount></cac:Price>
  </cac:InvoiceLine>
  <cac:InvoiceLine>
    <cbc:ID>2</cbc:ID>
    <cbc:InvoicedQuantity unitCode="KGM">17</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="CAD">139.23</cbc:LineExtensionAmount>
    <cac:Item>
      <cbc:Name>Butter</cbc:Name>
      <cac:BuyersItemIdentification><cbc:ID>ING-02</cbc:ID></cac:BuyersItemIdentification>
      <cac:SellersItemIdentification><cbc:ID>AW-ING-02</cbc:ID></cac:SellersItemIdentification>
      <cac:ClassifiedTaxCategory>
        <cbc:ID>S</cbc:ID>
        <cbc:Percent>5.00</cbc:Percent>
        <cac:TaxScheme><cbc:ID>GST</cbc:ID></cac:TaxScheme>
      </cac:ClassifiedTaxCategory>
    </cac:Item>
    <cac:Price><cbc:PriceAmount currencyID="CAD">8.19</cbc:PriceAmount></cac:Price>
  </cac:InvoiceLine>
  <cac:InvoiceLine>
    <cbc:ID>3</cbc:ID>
    <cbc:InvoicedQuantity unitCode="H87">20</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="CAD">7.00</cbc:LineExtensionAmount>
    <cac:Item>
      <cbc:Name>Eggs</cbc:Name>
      <cac:BuyersItemIdentification><cbc:ID>ING-03</cbc:ID></cac:BuyersItemIdentification>
      <cac:SellersItemIdentification><cbc:ID>AW-ING-03</cbc:ID></cac:SellersItemIdentification>
      <cac:ClassifiedTaxCategory>
        <cbc:ID>S</cbc:ID>
        <cbc:Percent>5.00</cbc:Percent>
        <cac:TaxScheme><cbc:ID>GST</cbc:ID></cac:TaxScheme>
      </cac:ClassifiedTaxCategory>
    </cac:Item>
    <cac:Price><cbc:PriceAmount currencyID="CAD">0.35</cbc:PriceAmount></cac:Price>
  </cac:InvoiceLine>
</Invoice>
