<?xml version="1.0"?>
<ZopeData>
  <record id="1" aka="AAAAAAAAAAE=">
    <pickle>
      <tuple>
        <tuple>
          <string>Products.PageTemplates.ZopePageTemplate</string>
          <string>ZopePageTemplate</string>
        </tuple>
        <none/>
      </tuple>
    </pickle>
    <pickle>
      <dictionary>
        <item>
            <key> <string>__ac_local_roles__</string> </key>
            <value>
              <none/>
            </value>
        </item>
        <item>
            <key> <string>_bind_names</string> </key>
            <value>
              <object>
                <klass>
                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
                </klass>
                <tuple/>
                <state>
                  <dictionary>
                    <item>
                        <key> <string>_asgns</string> </key>
                        <value>
                          <dictionary>
                            <item>
                                <key> <string>name_subpath</string> </key>
                                <value> <string>traverse_subpath</string> </value>
                            </item>
                          </dictionary>
                        </value>
                    </item>
                  </dictionary>
                </state>
              </object>
            </value>
        </item>
        <item>
            <key> <string>_owner</string> </key>
            <value>
              <none/>
            </value>
        </item>
        <item>
            <key> <string>_text</string> </key>
            <value> <string encoding="cdata"><![CDATA[

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\n
\n
<html>\n
\n
  <head>\n
    <meta http-equiv="content-type" content="text/html;charset=utf-8">\n
    <title tal:content="here/getTitle">Nexedi</title>\n
\n
  </head>\n
\n
  <body bgcolor="#ffffff"\n
                tal:define="packing_list python:here.getDefaultValue(\'causality\',spec=[\'Sale Packing List\']);\n
                invoice_line_list        python:here.contentValues(filter={\'portal_type\':\'Invoice Line\'});\n
                from_organisation        python:here.getSourceSectionValue();\n
                client_invoice           python:here.getDefaultValue(\'destination_section\',spec=[\'Organisation\', \'Person\']);\n
                client_delivery          python:here.getDefaultValue(\'destination\',spec=[\'Organisation\', \'Person\']);\n
                client_delivery          python:client_delivery or here.getDefaultValue(\'destination_section\',spec=[\'Organisation\', \'Person\']);\n
                total_price              python:here.getTotalPrice();\n
                VAT_infos                python:here.SaleInvoiceTransaction_getVAT()">\n
\n
\n
  <table width=100%>\n
    <tr>\n
      <td colspan=3><img src="logo.png"></td>\n
    </tr>\n
    <tr>\n
      <td align=left tal:content="python: from_organisation.getCorporateName()" colspan="2" />\n
      <td align=right tal:content="python: \'Invoice date / Wystawiona: %s\' % here.getStartDate().Date()"/>\n
    </tr>\n
    <tr>\n
      <td align=left tal:content="python: \'Tel: %s\' % from_organisation.getDefaultTelephone().asText()" colspan="2"/>\n
      <td align=right tal:content="python: \'Pay Before / Termin p\xc5\x82atno\xc5\x9bci: %s\' % here.SaleInvoiceTransaction_getDueDate().Date()"/>\n
    </tr>\n
    <tr>\n
      <td tal:content="python: from_organisation.getDefaultAddress().getStreetAddress()" colspan="2"/>\n
      <td align=right> Invoice / Faktura nr: <span tal:replace="python: here.getReference() or here.getId()"/> </td>\n
    </tr>\n
    <tr>\n
      <td tal:content="python: \'%s %s\' %\n
                              (from_organisation.getDefaultAddress().getZipCode(),\n
                              from_organisation.getDefaultAddress().getCity())" colspan="3"/>\n
    </tr>\n
    <tr>\n
      <td tal:content="python: from_organisation.getDefaultAddress().getRegionTitle()" colspan="3"/>\n
    </tr>\n
\n
    <tr>\n
      <th colspan=3>\n
        <h2 tal:condition="python:here.getSimulationState() not in (\'draft\',\'planned\')">INVOICE / FAKTURA</h2>\n
        <h2 tal:condition="python:here.getSimulationState() in (\'draft\',\'planned\')">PROFORMA INVOICE / FAKTURA PROFORMA</h2>\n
        <h3 tal:content="here/Title"></h3>\n
      </th>\n
    </tr>\n
\n
    </table>\n
\n
    <br/>\n
\n
      <table width=100%>\n
      <tr bgcolor=000000>\n
        <th align=left><font color=ffffff size=-2>INVOICE ADDRESS / ADRES NABYWCY</font></th>\n
        <th align=left><font color=ffffff size=-2>DELIVERY ADDRESS / ADRES ODBIORCY</font></th>\n
      </tr>\n
\n
      <tr>\n
        <td align=left tal:content="client_invoice/getCorporateName | client_invoice/getTitle"/>\n
        <td align=left tal:content="client_delivery/getCorporateName | client_delivery/getTitle"/>\n
      </tr>\n
      <tr>\n
        <td align=left tal:content="python: client_invoice.getDefaultAddress().getStreetAddress()" tal:on-error="nothing"/>\n
        <td align=left tal:content="python: client_delivery.getDefaultAddress().getStreetAddress()" tal:on-error="nothing"/>\n
      </tr>\n
      <tr>\n
        <td align=left>\n
          <tal:block tal:replace="python: client_invoice.getDefaultAddress().getZipCode()" tal:on-error="nothing"/>\n
          <tal:block tal:replace="python: client_invoice.getDefaultAddress().getCity()" tal:on-error="nothing"/>\n
        </td>\n
        <td align=left>\n
          <tal:block tal:replace="python: client_delivery.getDefaultAddress().getZipCode()" tal:on-error="nothing"/>\n
          <tal:block tal:replace="python: client_delivery.getDefaultAddress().getCity()" tal:on-error="nothing"/>\n
        </td>\n
      </tr>\n
      <tr>\n
        <td align=left tal:content="python: client_invoice.getDefaultAddress().getRegionTitle()" tal:on-error="nothing"/>\n
        <td align=left tal:content="python: client_delivery.getDefaultAddress().getRegionTitle()" tal:on-error="nothing"/>\n
      </tr>\n
      </table>\n
\n
    <br/>\n
\n
      <table width=100%>\n
        <tr bgcolor=000000>\n
          <th align=left nowrap><font color=ffffff size=-2>Nr / Nr</font></th>\n
          <th align=left nowrap><font color=ffffff size=-2>Description / Opis</font></th>\n
          <th nowrap><font color=ffffff size=-2>Qty / Ilo\xc5\x9b\xc4\x87</th>\n
          <th nowrap><font color=ffffff size=-2>Unit / jm</font></th>\n
          <th nowrap><font color=ffffff size=-2>Price / Cena jedn.</font></th>\n
          <th nowrap><font color=ffffff size=-2>Price / Razem</font></th>\n
        </tr>\n
        <tal:block tal:condition="python: packing_list is not None">\n
          <span tal:define="ordered_line_list python:packing_list.contentValues(filter={\'portal_type\':\'Delivery Line\'})"\n
                tal:repeat="line ordered_line_list">\n
            <tr valign=top tal:condition="python:line.getTotalQuantity()>0">\n
\n
              <td align=left tal:content="python:line.getId()"></td>\n
              <td tal:content="python: line.getResourceTitle()" tal:condition="python: line.getDescription() == \'\'"></td>\n
              <td tal:content="python: line.getDescription()" tal:condition="python: line.getDescription() != \'\'"></td>\n
              <td align=right tal:content="python: \'%.0f\' % line.getTotalQuantity()"></td>\n
              <td align=right tal:content="python: line.getQuantityUnitTitle() or line.getQuantityUnit()">n/a</td>\n
              <td align=right tal:content="python: \'%.02f\' % line.getPrice()"></td>\n
              <td align=right tal:content="python: \'%.02f\' % line.getTotalPrice()"></td>\n
            </tr>\n
          </span>\n
        </tal:block>\n
        <tal:block tal:condition="python: invoice_line_list is not None">\n
          <tal:block tal:repeat="line invoice_line_list">\n
            <tr valign=top tal:condition="python:float(line.getTotalQuantity()) != 0.0">\n
\n
              <td align=left tal:content="python:line.getId()"></td>\n
              <td tal:content="python: line.getResourceTitle()" tal:condition="python: line.getDescription() == \'\'"></td>\n
              <td tal:content="python: line.getDescription()" tal:condition="python: line.getDescription() != \'\'"></td>\n
              <td align=right tal:content="python: \'%.0f\' % line.getTotalQuantity()"></td>\n
              <td align=right tal:content="python: line.getQuantityUnitTitle() or line.getQuantityUnit()">n/a</td>\n
              <td align=right tal:content="python: \'%.02f\' % line.getPrice()"></td>\n
              <td align=right tal:content="python: \'%.02f\' % line.getTotalPrice()"></td>\n
            </tr>\n
          </tal:block>\n
        </tal:block>\n
        <tr>\n
          <td colspan=6><hr noshade></td>\n
        </tr>\n
        <tr>\n
          <th colspan=5 align=right>Razem\n
            (<span tal:replace="python:here.getPriceCurrencyTitle() or here.getResourceTitle() or \'\'"/>)</th>\n
          <td colspan=1 align=right tal:content="python: \'%.02f\' % round(here.getTotalPrice(), 2)" tal:on-error="nothing"></td>\n
        </tr>\n
        <tr>\n
          <td colspan=2 align=left tal:content="python:here.getDescription()"></td>\n
          <th colspan=3 align=right> \n
             <tal:block tal:replace="python: VAT_infos[\'title\']">TVA / VAT</tal:block> <br> \n
             <tal:block tal:replace="python: 100.0 * (VAT_infos[\'ratio\'] or 0.0)"/> % (<span tal:replace="python:here.getPriceCurrencyTitle() or here.getResourceTitle() or \'\'"/>)</th>\n
          <td colspan=1 align=right tal:content="python: \'%.02f\' % round(VAT_infos[\'total\'], 2)"></td>\n
        </tr>\n
        <tr>\n
          <td colspan=3>&nbsp;</td>\n
          <td colspan=3><hr noshade></td>\n
        </tr>\n
        <tr>\n
          <td colspan=3>To be paid within <b tal:content="python: here.getPaymentConditionPaymentTerm(30)">0</b> days from the invoice date.\n
    <br>Do zap\xc5\x82aty w ci\xc4\x85gu <b tal:replace="python: here.getPaymentConditionPaymentTerm(30)">0</b> dni od daty wystawienia faktury.</td>\n
\n
          <th colspan=2 align=right nowrap>Total Amount<br>Do zap\xc5\x82aty\n
            (<span tal:replace="python:here.getPriceCurrencyTitle() or here.getResourceTitle() or \'\'"/>)</th>\n
          <th colspan=1 align=right tal:content="python: \'%.02f\' % (round(VAT_infos[\'total\'], 2) + round(here.getTotalPrice(), 2))" tal:on-error="nothing"></th>\n
        </tr>\n
        <tr>\n
          <td>&nbsp;</td>\n
        </tr>\n
      </table>\n
\n
  <table width="100%">\n
  <tr>\n
        <td><center>\n
        <span tal:content="python:from_organisation.getCorporateName()"></span><br/><br/>\n
        <span tal:define="accs python:from_organisation.searchFolder(portal_type=\'Bank Account\',validation_state=\'valid\');" tal:condition="accs">\n
            <span tal:define="acc python:accs[0].getObject()">\n
                Bank name / Nazwa banku: <span tal:content="acc/getSourceTitle"></span><br/>\n
                Bank account / Numer rachunku bankowego: <span tal:content="acc/getBankAccountNumber"></span><br/><br/>\n
            </span>\n
        </span>\n
        VAT code / NIP: <span tal:content="from_organisation/getVatCode"></span>\n
        \n
        \n
        </center></td>\n
    </tr>\n
  </table>\n
\n
\n
</body>\n
\n
</html>\n
<!--\n
# vim:syntax=html\n
-->\n


]]></string> </value>
        </item>
        <item>
            <key> <string>content_type</string> </key>
            <value> <string>text/html</string> </value>
        </item>
        <item>
            <key> <string>expand</string> </key>
            <value> <int>0</int> </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>SaleInvoiceTransaction_viewAsHTML</string> </value>
        </item>
        <item>
            <key> <string>title</string> </key>
            <value> <string></string> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
