<?xml version="1.0" encoding="UTF-8"?>
<office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" office:mimetype="application/vnd.oasis.opendocument.text" office:version="1.3">
  <office:styles>
    <style:style style:name="Title" style:family="paragraph"><style:paragraph-properties fo:margin-bottom="0.4cm"/><style:text-properties fo:font-size="18pt" fo:font-weight="bold"/></style:style>
    <style:style style:name="Heading" style:family="paragraph"><style:paragraph-properties fo:margin-top="0.35cm" fo:margin-bottom="0.15cm"/><style:text-properties fo:font-size="12pt" fo:font-weight="bold"/></style:style>
  </office:styles>
  <office:body>
    <office:text>
      <text:p text:style-name="Title">{{organization.name}}</text:p>
      <text:p>{{organization.address_line}} · {{organization.email}}</text:p>
      <text:p>Erstellt am {{document.created_date}}</text:p>
      <text:p text:style-name="Heading">Forderung: {{claim.title}}</text:p>
      <text:p>Mitglied: {{member.full_name}} ({{member.number}})</text:p>
      <text:p>E-Mail: {{member.email}}</text:p>
      <text:p>Anschrift: {{member.address_line}}</text:p>
      <text:p>Fällig am: {{claim.due_date}}</text:p>
      <text:p text:style-name="Heading">Positionen</text:p>
      <table:table table:name="Forderungspositionen">
        <table:table-row>
          <table:table-cell><text:p>Beschreibung</text:p></table:table-cell>
          <table:table-cell><text:p>Typ</text:p></table:table-cell>
          <table:table-cell><text:p>Menge</text:p></table:table-cell>
          <table:table-cell><text:p>Einzelpreis</text:p></table:table-cell>
          <table:table-cell><text:p>Betrag</text:p></table:table-cell>
        </table:table-row>
        <table:table-row>
          <table:table-cell><text:p>{{#claim.items}}{{item.description}}</text:p></table:table-cell>
          <table:table-cell><text:p>{{item.type}}</text:p></table:table-cell>
          <table:table-cell><text:p>{{item.quantity}}</text:p></table:table-cell>
          <table:table-cell><text:p>{{item.unit_price}} EUR</text:p></table:table-cell>
          <table:table-cell><text:p>{{item.amount}} EUR{{/claim.items}}</text:p></table:table-cell>
        </table:table-row>
      </table:table>
      <text:p>Gesamtbetrag: {{claim.total}}</text:p>
      <text:p>Bereits bezahlt: {{claim.paid}}</text:p>
      <text:p text:style-name="Heading">Offener Betrag: {{claim.balance}}</text:p>
      <text:p>Zahlung an {{organization.iban}} · BIC {{organization.bic}}</text:p>
      <text:p>Forderungs-ID: {{claim.id}}</text:p>
    </office:text>
  </office:body>
</office:document>
