<?xml version="1.0"?>
<ZopeData>
  <record id="1" aka="AAAAAAAAAAE=">
    <pickle>
      <global name="PDFTemplate" module="Products.ERP5Form.PDFTemplate"/>
    </pickle>
    <pickle>
      <dictionary>
        <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>_text</string> </key>
            <value> <unicode encoding="cdata"><![CDATA[

<?xml version="1.0" encoding="latin1"?>\n
<document\n
  filename="journal.pdf"\n
  tal:define="portal           here/portal_url/getPortalObject;\n
              transaction_list here/AccountingTransactionModule_getJournalAccountingTransactionList;\n
              precision        here/Base_getPreferredPrecision">\n
    <title>Journal</title>\n
    <author>ERP5</author>\n
    <subject>Journal</subject>\n
    <content xmlns:tal="http://xml.zope.org/namespaces/tal">\n
        <para style="Title" i18n:translate="" i18n:domain="ui">Journal</para>\n
        <action name="nextPageTemplate">\n
         <parameter>FirstPage</parameter>\n
        </action>\n
        <spacer height="50"/>\n
        \n
        <table splitbyrow="1" repeatrows="0" repeatcols="0"  style="AttributesTable" >\n
          <tr tal:condition="python: request.get(\'from_date\', 0)">\n
            <td colwidth="5cm">  <para style="TableHeader" tal:content="python: here.Base_translateString(\'From Date\')"/> </td>\n
            <td colwidth="15cm"> <para style="TableStandardRightAligned" tal:content="python: here.Base_FormatDate(request.get(\'from_date\'))"/></td> </tr>\n
          <tr>\n
            <td colwidth="5cm">  <para style="TableHeader" tal:content="python: here.Base_translateString(\'At Date\')"/> </td>\n
            <td colwidth="15cm"> <para style="TableStandardRightAligned" tal:content="python: here.Base_FormatDate(request.get(\'at_date\'))"/></td> </tr>\n
          <tr>\n
            <td colwidth="5cm">  <para style="TableHeader" tal:content="python: here.Base_translateString(\'Section\')"/> </td>\n
            <td colwidth="15cm"> <para style="TableStandardRightAligned" tal:content="python: here.portal_categories.restrictedTraverse(request.get(\'transaction_section_category\')).getLogicalPath()"/></td> </tr>\n
          <tr>\n
            <td colwidth="5cm">  <para style="TableHeader" tal:content="python: here.Base_translateString(\'Transactions Simulation State\')"/> </td>\n
            <td colwidth="15cm"> <tal:block tal:repeat="state python:request.get(\'transaction_simulation_state\', [])">\n
                 <para style="TableStandardRightAligned" tal:content="state"/> </tal:block> </td> </tr>\n
          <tr>\n
            <td colwidth="5cm">  <para style="TableHeader" tal:content="python: here.Base_translateString(\'Journal Type\')"/> </td>\n
            <td colwidth="15cm"> <tal:block tal:repeat="type python:request.get(\'transaction_portal_type\', [])">\n
                 <para style="TableStandardRightAligned" tal:content="python: here.Base_translateString(type)"/> </tal:block> </td> </tr>\n
\n
       </table>\n
        <spacer height="10"/>\n
\n
        <table style="top_of_page" splitbyrow="1" repeatrows="0" repeatcols="0">\n
            <tr rowheight="0.512cm">\n
                <td colwidth="12cm">Account Title</td>\n
                <td colwidth="2.5cm">Debit</td>\n
                <td colwidth="2.5cm">Credit</td>\n
            </tr>\n
        </table>\n
        <tal:block tal:repeat="transaction python:transaction_list[:-1]">\n
            <table style="transaction_header" splitbyrow="1" repeatrows="0" repeatcols="0">\n
                <tr rowheight="0.5cm">\n
                    <td colwidth="4.5cm"/>\n
                    <td colwidth="3cm" tal:content="transaction/date">Date</td>\n
                    <td colwidth="4.5cm"/>\n
                    <td colwidth="2.5cm"/>\n
                    <td colwidth="2.5cm"/>\n
                </tr>\n
            </table>\n
\n
            <tal:block tal:repeat="line transaction/lines">\n
                <table style="transaction_body" splitbyrow="1" repeatrows="0" repeatcols="0">\n
                    <tr rowheight="0.512cm">\n
                        <tal:block tal:condition="not:line/debtor">\n
                            <td colwidth="2cm"/>\n
                        </tal:block>\n
                        <td colwidth="modified"\n
                            tal:attributes="colwidth python: line[\'debtor\'] and \'12cm\' or \'10cm\' ;" tal:content="python:line[\'account_name\']"/>\n
                        <td colwidth="2.5cm" tal:content="python:line[\'debtor\'] and        here.Base_getRoundValue(line[\'amount\'], precision) or \' \' "/>\n
                        <td colwidth="2.5cm" tal:content="python:line[\'debtor\'] and \' \' or here.Base_getRoundValue(line[\'amount\'], precision) "/>\n
                    </tr>\n
                </table>\n
            </tal:block>\n
\n
            <table style="transaction_footer" splitbyrow="1" repeatrows="0" repeatcols="0">\n
                <tr>\n
                    <td colwidth="0.5cm"/>\n
                    <td colwidth="11.5cm" tal:content="transaction/description"/>\n
                    <td colwidth="2.5cm"/>\n
                    <td colwidth="2.5cm"/>\n
                </tr>\n
            </table>\n
        </tal:block>\n
         \n
        <tal:block tal:replace="nothing"> Summary.\n
        </tal:block>\n
        <tal:block>\n
\t\t\t<!--\n
            <table style="transaction_header" splitbyrow="1" repeatrows="0" repeatcols="0">\n
                <tr rowheight="0.5cm">\n
                    <td colwidth="1.5cm"/>\n
                    <td colwidth="1.5cm"/>\n
                    <td colwidth="4.5cm"/>\n
                    <td colwidth="3cm"/>\n
                    <td colwidth="4.5cm"/>\n
                    <td colwidth="2.5cm"/>\n
                    <td colwidth="2.5cm"/>\n
                </tr>\n
            </table>\n
\t\t\t-->\n
            <table style="transaction_body" splitbyrow="1" repeatrows="0" repeatcols="0">\n
                <tr rowheight="1.5cm">\n
<!--                    <td colwidth="1.5cm"/>-->\n
<!--                    <td colwidth="1.5cm"/>-->\n
<!--                    <td colwidth="2cm"/>-->\n
\t\t\t\t\t<td colwidth="0.5cm"/>\n
                    <td colwidth="11.5cm" > Total </td>\n
                    <td colwidth="2.5cm" tal:content="python: here.Base_getRoundValue(transaction_list[-1][\'journal_total_debit\' ], precision) "/>\n
                    <td colwidth="2.5cm" tal:content="python: here.Base_getRoundValue(transaction_list[-1][\'journal_total_credit\'], precision) "/>\n
                </tr>\n
            </table>\n
        </tal:block>\n
    </content>\n
</document>\n


]]></unicode> </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>AccountingTransactionModule_viewJournalAsPdf</string> </value>
        </item>
        <item>
            <key> <string>output_encoding</string> </key>
            <value> <string>utf-8</string> </value>
        </item>
        <item>
            <key> <string>pdf_stylesheet</string> </key>
            <value> <string>AccountingTransactionModule_journal_pdf_template</string> </value>
        </item>
        <item>
            <key> <string>title</string> </key>
            <value> <string></string> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
