From 16a8e27c8c70b387179bc4c3004157abb41728a4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 31 Jan 2013 16:29:32 +0000
Subject: [PATCH] Remove pdf template. This is obsolete

---
 ...le_getJournalAccountingTransactionList.xml | 234 ------------------
 ...TransactionModule_journal_pdf_template.xml | 134 ----------
 ...tingTransactionModule_viewJournalAsPdf.xml | 185 --------------
 bt5/erp5_accounting/bt/revision               |   2 +-
 ...TransactionModule_journal_pdf_template.xml | 134 ----------
 ...tingTransactionModule_viewJournalAsPdf.xml | 180 --------------
 bt5/erp5_accounting_l10n_in/bt/revision       |   2 +-
 7 files changed, 2 insertions(+), 869 deletions(-)
 delete mode 100644 bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getJournalAccountingTransactionList.xml
 delete mode 100644 bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_journal_pdf_template.xml
 delete mode 100644 bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_viewJournalAsPdf.xml
 delete mode 100644 bt5/erp5_accounting_l10n_in/SkinTemplateItem/portal_skins/erp5_accounting_l10n_in/AccountingTransactionModule_journal_pdf_template.xml
 delete mode 100644 bt5/erp5_accounting_l10n_in/SkinTemplateItem/portal_skins/erp5_accounting_l10n_in/AccountingTransactionModule_viewJournalAsPdf.xml

diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getJournalAccountingTransactionList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getJournalAccountingTransactionList.xml
deleted file mode 100644
index a8f962bd98..0000000000
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getJournalAccountingTransactionList.xml
+++ /dev/null
@@ -1,234 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>Script_magic</string> </key>
-            <value> <int>3</int> </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_container</string> </key>
-                                <value> <string>container</string> </value>
-                            </item>
-                            <item>
-                                <key> <string>name_context</string> </key>
-                                <value> <string>context</string> </value>
-                            </item>
-                            <item>
-                                <key> <string>name_m_self</string> </key>
-                                <value> <string>script</string> </value>
-                            </item>
-                            <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>_body</string> </key>
-            <value> <string encoding="cdata"><![CDATA[
-
-"""\n
-  Returns journal entries, for use with AccountingTransactionModule_viewJournal\n
-\n
-  return a list of dictionnaries like that :\n
-\n
-  { \'date\'       : Date\n
-  , \'description\': String\n
-  , \'currency\'   : String\n
-  , \'lines\'      : { \'debtor\'        : Bool\n
-                   , \'account_gap_id\': String\n
-                   , \'account_name\'  : String  # with extra-description (ie. bank name if a bank, organisation name if an other party)\n
-                   , \'amount\'        : Float\n
-                   }\n
-  }\n
-"""\n
-\n
-request = context.REQUEST\n
-selection_name = "accounting_selection"\n
-Base_translateString = context.Base_translateString\n
-result = []\n
-journal_total_debit  = 0\n
-journal_total_credit = 0\n
-\n
-# this report can be used in two ways:\n
-#   * with a report dialog to specify parameters\n
-if request.has_key(\'at_date\'):\n
-  at_date = request[\'at_date\'].latestTime()\n
-  section_category = request[\'transaction_section_category\']\n
-  transaction_simulation_state = request[\'transaction_simulation_state\']\n
-  transaction_portal_type = request[\'transaction_portal_type\']\n
-  from_date = request.get(\'from_date\', None)\n
-  params = { \'sort_on\'         : \'delivery.start_date\',\n
-             \'at_date\'         : at_date,\n
-             \'simulation_state\': transaction_simulation_state,\n
-             \'search_result_keys\': [],\n
-             \'section_category\': section_category,\n
-             \'portal_type\'     : transaction_portal_type, }\n
-\n
-  if from_date:\n
-    params[\'from_date\'] = from_date\n
-\n
-  zGetList = context.AccountingTransactionModule_zGetAccountingTransactionList\n
-  transaction_list = zGetList( selection_params = params\n
-                             , **params\n
-                             )\n
-else:\n
-  stool = context.getPortalObject().portal_selections\n
-  transaction_list = [x.getObject() for x in \n
-                      stool.callSelectionFor(selection_name)]\n
-  section_category = stool.getSelectionParamsFor(selection_name\n
-                    ).get(\'section_category\', \'unset\')\n
-\n
-for transaction in transaction_list:\n
-  transaction         = transaction.getObject()\n
-  destination_section = transaction.getDestinationSectionValue()\n
-  source_section      = transaction.getSourceSectionValue()\n
-\n
-  # add a test on portal type to bypass bad acquisition of group category from\n
-  # person to Orignisation This help us filter employee of the source_section:\n
-  # because of acquisition via subordination they are seen as part of the group\n
-  # but in this accounting context group define a business unit composed of\n
-  # organisation\n
-  we_are_destination = (destination_section is not None) and \\\n
-      (\'group/%s\' % destination_section.getGroup(\'\')\n
-            ).startswith(section_category) and \\\n
-            destination_section.getPortalType() == "Organisation"\n
-  we_are_source = (source_section is not None) and \\\n
-      (\'group/%s\' % source_section.getGroup(\'\')\n
-            ).startswith(section_category) and \\\n
-            source_section.getPortalType() == "Organisation"\n
-\n
-  if we_are_source:\n
-    specific_reference = transaction.getSourceReference()\n
-    date = transaction.getStartDate()\n
-  else:\n
-    specific_reference = transaction.getDestinationReference()\n
-    date = transaction.getStopDate()\n
-\n
-  lines = []\n
-  transaction_dict = {\n
-    \'date\'       : context.Base_FormatDate( date ),\n
-    \'lines\'      : lines,\n
-    \'description\': Base_translateString(\n
-    "${transaction_title} (Transaction Reference "\n
-    "= ${transaction_reference},\\n Creation Date = "\n
-    "${creation_date} \\n Currency = ${currency_title})",\n
-    mapping = {\n
-    "transaction_title": unicode(transaction.getTitle() or \'\', \'utf8\'),\n
-    "transaction_reference": unicode(specific_reference or \'\', \'utf8\'),\n
-    "creation_date": context.Base_FormatDate(transaction.getCreationDate()),\n
-    "currency_title": transaction.getResourceTitle() or \'\' })}\n
-\n
-  result.append(transaction_dict)\n
-  transaction_lines = transaction.contentValues(\n
-    filter = {\'portal_type\' : context.getPortalAccountingMovementTypeList()})\n
-\n
-  if we_are_source :\n
-    transaction_lines.sort(key=lambda x: x.getObject().getSourceInventoriatedTotalAssetPrice(),\n
-                           reverse=True)\n
-  else :\n
-    transaction_lines.sort(key=lambda x: x.getObject().getDestinationInventoriatedTotalAssetPrice(),\n
-                           reverse=True)\n
-\n
-  for line in transaction_lines:\n
-    line = line.getObject()\n
-\n
-    if we_are_source :\n
-      debit   = line.getSourceInventoriatedTotalAssetDebit()  or 0.0\n
-      credit  = line.getSourceInventoriatedTotalAssetCredit() or 0.0\n
-      debtor  = (line.getSourceInventoriatedTotalAssetPrice() > 0)\n
-      account = line.getSourceValue()\n
-      if account is None: continue\n
-      if account.isMemberOf(\'account_type/asset/cash\'):\n
-        account_description = "%s (%s)" % ( line.getSourceTitle()\n
-                                          , line.getSourcePaymentTitle()\n
-                                          )\n
-      elif account.getAccountType() in (\'asset/receivable\',\n
-                                        \'liability/payable\'):\n
-        account_description = "%s (%s)" % ( line.getSourceTitle()\n
-                                          , line.getDestinationSectionTitle()\n
-                                          )\n
-      else:\n
-        account_description = line.getSourceTitle()\n
-      lines.append({ \'debtor\'        : debtor\n
-                   , \'account_gap_id\': account.Account_getGapId()\n
-                   , \'account_name\'  : account_description\n
-                   , \'amount\'        : debtor and (debit) or (credit)\n
-                   })\n
-      if debtor:\n
-        journal_total_debit  += debit\n
-      else:\n
-        journal_total_credit += credit\n
-\n
-    if we_are_destination:\n
-      debit   = line.getDestinationInventoriatedTotalAssetDebit()  or 0.0\n
-      credit  = line.getDestinationInventoriatedTotalAssetCredit() or 0.0\n
-      debtor  = (debit > credit)\n
-      account = line.getDestinationValue()\n
-      if account is None: continue\n
-      if account.isMemberOf(\'account_type/asset/cash\'):\n
-        account_description = "%s (%s)" % ( line.getDestinationTitle()\n
-                                          , line.getDestinationPaymentTitle()\n
-                                          )\n
-      elif account.getAccountType() in (\'asset/receivable\',\n
-                                        \'liability/payable\'):\n
-        account_description = "%s (%s)" % ( line.getDestinationTitle()\n
-                                          , line.getSourceSectionTitle()\n
-                                          )\n
-      else:\n
-        account_description = line.getDestinationTitle()\n
-      lines.append({ \'debtor\'        : debtor\n
-                   , \'account_gap_id\': account.Account_getGapId()\n
-                   , \'account_name\'  : account_description\n
-                   , \'amount\'        : debtor and (debit) or (credit)\n
-                   })\n
-      if debtor:\n
-        journal_total_debit  += debit\n
-      else:\n
-        journal_total_credit += credit\n
-\n
-\n
-return result + [{ "journal_total_debit" : journal_total_debit\n
-                 , "journal_total_credit": journal_total_credit\n
-                 }]\n
-
-
-]]></string> </value>
-        </item>
-        <item>
-            <key> <string>_params</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>AccountingTransactionModule_getJournalAccountingTransactionList</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_journal_pdf_template.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_journal_pdf_template.xml
deleted file mode 100644
index d18d243409..0000000000
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_journal_pdf_template.xml
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
-    </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="iso-8859-1"?>\n
-<template bottommargin=\'2cm\' showboundary=\'0\' topmargin=\'2cm\' \n
-          rightmargin=\'2cm\' tal:define=\'portal python:here.portal_url.getPortalObject()\' \n
-          filename=\'journal.pdf\' pagesize=\'A4\' allowsplitting=\'1\' landscape=\'0\' leftmargin=\'2cm\'>\n
-\n
-  <pagetemplate startframe=\'content\' id=\'FirstPage\'>\n
-    <static>\n
-      <infostring align="left" x="1cm" y= "29cm" size="8" font="Helvetica" color="(0,0,0)"\n
-                  tal:content="python: here.Localizer.erp5_ui.gettext(\'Printed by %(user)s at %(date)s\') % {\'user\':user.getUserName(), \'date\':DateTime()}" >Printed by</infostring>\n
-      <infostring align="left" x="18cm" y= "0.5cm" size="10" font="Helvetica" color="(0,0,0)" >Page %(page)s</infostring>\n
-    </static>\n
-    <frame showBoundary=\'0\' leftpadding=\'0.1cm\' height=\'23.94cm\' width=\'17.59cm\' rightpadding=\'0.1cm\' y=\'2cm\' x=\'2cm\' nextid=\'content\' toppadding=\'0.2cm\' id=\'content\' bottompadding=\'0.5cm\'/>\n
-  </pagetemplate>\n
-\n
-  <stylesheet>\n
-    <paragraphstyle name="Title" parent="Normal" fontname="Helvetica-Bold" fontsize="32" align="CENTER"/>\n
-    <tablestyle name=\'default\'>\n
-      <stylecmd expr="(\'GRID\', (0,0), (-1,-1), 0.1, colors.black)"/>\n
-    </tablestyle>\n
-    <paragraphstyle name="TableStandard" parent="Normal" fontname="Helvetica" fontsize="8" alignment="left" />\n
-    <paragraphstyle name="TableStandardLeftAligned" parent="Normal" fontname="Helvetica" fontsize="7" alignment="left" />\n
-    <paragraphstyle name="TableStandardRightAligned" parent="Normal" fontname="Helvetica" fontsize="7" alignment="right" />\n
-    <paragraphstyle name="TableHeader" parent="Normal" fontname="Helvetica-Oblique" fontsize="9" alignment="left" />\n
-    <paragraphstyle name="TableLastLine" parent="Normal" fontname="Helvetica-Oblique" fontsize="11" alignment="left" />\n
-      \n
-    <tablestyle name=\'transaction_header\'>\n
-      <stylecmd expr="(\'LINEBELOW\', (2,0), (2,0), 0.1, colors.black)"/> \n
-      <stylecmd expr="(\'LINEBELOW\', (-3,0), (-3,0), 0.1, colors.black)"/> \n
-      <stylecmd expr="(\'LINEBEFORE\', (0,0),(2,0), 0.1, colors.black)"/>\n
-      <stylecmd expr="(\'LINEAFTER\', (-3,0),(-1,0), 0.1, colors.black)"/>\n
-      <stylecmd expr="(\'ALIGN\', (0,0),(-1,-1), \'CENTER\')"/>\n
-      <stylecmd expr="(\'VALIGN\', (0,0),(-1,-1), \'BOTTOM\')"/>\n
-    </tablestyle>\n
-    <tablestyle name=\'transaction_body\'>\n
-      <stylecmd expr="(\'FONT\', (0,0), (-1,-1), \'Helvetica\', 8)"/>\n
-      <stylecmd expr="(\'LINEBEFORE\', (0,0),(2,0), 0.1, colors.black)"/>\n
-      <stylecmd expr="(\'LINEAFTER\', (-3,0),(-1,0), 0.1, colors.black)"/>\n
-      <stylecmd expr="(\'ALIGN\', (-2,0), (-1,-1), \'RIGHT\')"/>\n
-     </tablestyle>\n
-    <tablestyle name=\'transaction_footer\'>\n
-      <stylecmd expr="(\'LINEBEFORE\', (0,0),(2,0), 0.1, colors.black)"/>\n
-      <stylecmd expr="(\'LINEAFTER\', (-3,0),(-1,0), 0.1, colors.black)"/>\n
-      <stylecmd expr="(\'FONT\', (0,0), (-1,-1), \'Times-Italic\', 10)"/>\n
-    </tablestyle>\n
-\n
-    <tablestyle name="top_of_page">\n
-      <stylecmd expr="(\'FONT\', (0,0), (-1,-1), \'Helvetica\', 8)"/>\n
-      <stylecmd expr="(\'BOX\', (0,0), (-1,0), 1, colors.black)"/>\n
-      <stylecmd expr="(\'BOX\', (0,1), (-1,-1), 1, colors.black)"/>\n
-      <stylecmd expr="(\'BACKGROUND\', (0,0), (-1,0), (0.9,0.9,0.9))"/>\n
-      <stylecmd expr="(\'ALIGN\', (0,0), (-1,-1), \'CENTER\')"/>\n
-      <stylecmd expr="(\'VALIGN\', (0,0), (-1,-1), \'TOP\')"/>\n
-      <stylecmd expr="(\'LEFTPADDING\', (0,0), (-1,-1), 1)"/>\n
-      <stylecmd expr="(\'RIGHTPADDING\', (0,0), (-1,-1), 1)"/>\n
-      <stylecmd expr="(\'BOTTOMPADDING\', (0,0), (-1,-1), 0)"/>\n
-      <stylecmd expr="(\'TOPPADDING\', (0,0), (-1,-1), 1)"/>\n
-    </tablestyle>\n
-\n
-    <tablestyle name="AttributesTable">\n
-      <stylecmd expr="(\'INNERGRID\', (0,0), (-1,-1), 1, (0.5,0.5,0.5))"/>\n
-      <stylecmd expr="(\'FONT\', (0,0), (-1,-1), \'Helvetica\', 8)"/>\n
-      <stylecmd expr="(\'BOX\', (0,0), (-1,-1), 1, colors.black)"/>\n
-      <stylecmd expr="(\'BACKGROUND\', (0,0), (0,-1), (0.9,0.9,0.9))"/>\n
-      <stylecmd expr="(\'ALIGN\', (0,0), (-1,-1), \'CENTER\')"/>\n
-      <stylecmd expr="(\'VALIGN\', (0,0), (-1,-1), \'TOP\')"/>\n
-    </tablestyle>\n
-\n
-  </stylesheet>\n
-</template>
-
-]]></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_journal_pdf_template</string> </value>
-        </item>
-        <item>
-            <key> <string>output_encoding</string> </key>
-            <value> <string>utf-8</string> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <unicode></unicode> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_viewJournalAsPdf.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_viewJournalAsPdf.xml
deleted file mode 100644
index 246701f889..0000000000
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_viewJournalAsPdf.xml
+++ /dev/null
@@ -1,185 +0,0 @@
-<?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"\n
-               repeatcols="0" style="AttributesTable"\n
-               tal:condition="request/at_date | nothing">\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="1.5cm">Debit</td>\n
-                <td colwidth="1.5cm">Credit</td>\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="1.5cm"/>\n
-                    <td colwidth="1.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
-            <tal:block tal:repeat="line transaction/lines">\n
-                <table style="transaction_body" splitbyrow="1" repeatrows="0" repeatcols="0">\n
-                    <tr rowheight="0.512cm">\n
-                        <td colwidth="1.5cm" tal:content="python:line[\'debtor\'] and line[\'account_gap_id\'] or \' \' "/>\n
-                        <td colwidth="1.5cm" tal:content="python:line[\'debtor\'] and \' \' or line[\'account_gap_id\'] "/>\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
-            <table style="transaction_footer" splitbyrow="1" repeatrows="0" repeatcols="0">\n
-                <tr>\n
-                    <td colwidth="1.5cm"/>\n
-                    <td colwidth="1.5cm"/>\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
-            <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
-            <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
-                    <td colwidth="10cm" > 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>
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index 2c87a4b00c..ecbf604f8e 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-1508
\ No newline at end of file
+1513
diff --git a/bt5/erp5_accounting_l10n_in/SkinTemplateItem/portal_skins/erp5_accounting_l10n_in/AccountingTransactionModule_journal_pdf_template.xml b/bt5/erp5_accounting_l10n_in/SkinTemplateItem/portal_skins/erp5_accounting_l10n_in/AccountingTransactionModule_journal_pdf_template.xml
deleted file mode 100644
index 680d93e5b6..0000000000
--- a/bt5/erp5_accounting_l10n_in/SkinTemplateItem/portal_skins/erp5_accounting_l10n_in/AccountingTransactionModule_journal_pdf_template.xml
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
-    </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="iso-8859-1"?>\n
-<template bottommargin=\'2cm\' showboundary=\'0\' topmargin=\'2cm\' \n
-          rightmargin=\'2cm\' tal:define=\'portal python:here.portal_url.getPortalObject()\' \n
-          filename=\'journal.pdf\' pagesize=\'A4\' allowsplitting=\'1\' landscape=\'0\' leftmargin=\'2cm\'>\n
-\n
-  <pagetemplate startframe=\'content\' id=\'FirstPage\'>\n
-    <static>\n
-      <infostring align="left" x="1cm" y= "29cm" size="8" font="Helvetica" color="(0,0,0)"\n
-                  tal:content="python: here.Localizer.erp5_ui.gettext(\'Printed by %(user)s at %(date)s\') % {\'user\':user.getUserName(), \'date\':DateTime()}" >Printed by</infostring>\n
-      <infostring align="left" x="18cm" y= "0.5cm" size="10" font="Helvetica" color="(0,0,0)" >Page %(page)s</infostring>\n
-    </static>\n
-    <frame showBoundary=\'0\' leftpadding=\'0.1cm\' height=\'23.94cm\' width=\'17.59cm\' rightpadding=\'0.1cm\' y=\'2cm\' x=\'2cm\' nextid=\'content\' toppadding=\'0.2cm\' id=\'content\' bottompadding=\'0.5cm\'/>\n
-  </pagetemplate>\n
-\n
-  <stylesheet>\n
-    <paragraphstyle name="Title" parent="Normal" fontname="Helvetica-Bold" fontsize="32" align="CENTER"/>\n
-    <tablestyle name=\'default\'>\n
-      <stylecmd expr="(\'GRID\', (0,0), (-1,-1), 0.1, colors.black)"/>\n
-    </tablestyle>\n
-    <paragraphstyle name="TableStandard" parent="Normal" fontname="Helvetica" fontsize="8" alignment="left" />\n
-    <paragraphstyle name="TableStandardLeftAligned" parent="Normal" fontname="Helvetica" fontsize="7" alignment="left" />\n
-    <paragraphstyle name="TableStandardRightAligned" parent="Normal" fontname="Helvetica" fontsize="7" alignment="right" />\n
-    <paragraphstyle name="TableHeader" parent="Normal" fontname="Helvetica-Oblique" fontsize="9" alignment="left" />\n
-    <paragraphstyle name="TableLastLine" parent="Normal" fontname="Helvetica-Oblique" fontsize="11" alignment="left" />\n
-      \n
-    <tablestyle name=\'transaction_header\'>\n
-\t  <stylecmd expr="(\'LINEBELOW\', (0,0), (0,0), 0.1, colors.black)"/> \n
-\t  <stylecmd expr="(\'LINEBELOW\', (-3,0), (-3,0), 0.1, colors.black)"/> \n
-\t  <stylecmd expr="(\'LINEBEFORE\', (0,0),(0,0), 0.1, colors.black)"/>\n
-\t  <stylecmd expr="(\'LINEAFTER\', (-3,0),(-1,0), 0.1, colors.black)"/>\n
-      <stylecmd expr="(\'ALIGN\', (0,0),(-1,-1), \'CENTER\')"/>\n
-      <stylecmd expr="(\'VALIGN\', (0,0),(-1,-1), \'BOTTOM\')"/>\n
-    </tablestyle>\n
-    <tablestyle name=\'transaction_body\'>\n
-      <stylecmd expr="(\'LINEBEFORE\', (0,0),(0,0), 0.1, colors.black)"/>\n
-      <stylecmd expr="(\'LINEAFTER\', (-3,0),(-1,0), 0.1, colors.black)"/>\n
-      <stylecmd expr="(\'ALIGN\', (-2,0), (-1,-1), \'RIGHT\')"/>\n
-     </tablestyle>\n
-    <tablestyle name=\'transaction_footer\'>\n
-      <stylecmd expr="(\'LINEBEFORE\', (0,0),(0,0), 0.1, colors.black)"/>\n
-      <stylecmd expr="(\'LINEAFTER\', (-3,0),(-1,0), 0.1, colors.black)"/>\n
-      <stylecmd expr="(\'FONT\', (0,0), (-1,-1), \'Times-Italic\', 10)"/>\n
-    </tablestyle>\n
-\n
-    <tablestyle name="top_of_page">\n
-      <stylecmd expr="(\'FONT\', (0,0), (-1,-1), \'Helvetica\', 8)"/>\n
-      <stylecmd expr="(\'BOX\', (0,0), (-1,0), 1, colors.black)"/>\n
-      <stylecmd expr="(\'BOX\', (0,1), (-1,-1), 1, colors.black)"/>\n
-      <stylecmd expr="(\'BACKGROUND\', (0,0), (-1,0), (0.9,0.9,0.9))"/>\n
-      <stylecmd expr="(\'ALIGN\', (0,0), (-1,-1), \'CENTER\')"/>\n
-      <stylecmd expr="(\'VALIGN\', (0,0), (-1,-1), \'TOP\')"/>\n
-      <stylecmd expr="(\'LEFTPADDING\', (0,0), (-1,-1), 1)"/>\n
-      <stylecmd expr="(\'RIGHTPADDING\', (0,0), (-1,-1), 1)"/>\n
-      <stylecmd expr="(\'BOTTOMPADDING\', (0,0), (-1,-1), 0)"/>\n
-      <stylecmd expr="(\'TOPPADDING\', (0,0), (-1,-1), 1)"/>\n
-    </tablestyle>\n
-\n
-    <tablestyle name="AttributesTable">\n
-      <stylecmd expr="(\'INNERGRID\', (0,0), (-1,-1), 1, (0.5,0.5,0.5))"/>\n
-      <stylecmd expr="(\'FONT\', (0,0), (-1,-1), \'Helvetica\', 8)"/>\n
-      <stylecmd expr="(\'BOX\', (0,0), (-1,-1), 1, colors.black)"/>\n
-      <stylecmd expr="(\'BACKGROUND\', (0,0), (0,-1), (0.9,0.9,0.9))"/>\n
-      <stylecmd expr="(\'ALIGN\', (0,0), (-1,-1), \'CENTER\')"/>\n
-      <stylecmd expr="(\'VALIGN\', (0,0), (-1,-1), \'TOP\')"/>\n
-    </tablestyle>\n
-\n
-  </stylesheet>\n
-</template>\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_journal_pdf_template</string> </value>
-        </item>
-        <item>
-            <key> <string>output_encoding</string> </key>
-            <value> <string>utf-8</string> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <unicode></unicode> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_accounting_l10n_in/SkinTemplateItem/portal_skins/erp5_accounting_l10n_in/AccountingTransactionModule_viewJournalAsPdf.xml b/bt5/erp5_accounting_l10n_in/SkinTemplateItem/portal_skins/erp5_accounting_l10n_in/AccountingTransactionModule_viewJournalAsPdf.xml
deleted file mode 100644
index d5b640bfe5..0000000000
--- a/bt5/erp5_accounting_l10n_in/SkinTemplateItem/portal_skins/erp5_accounting_l10n_in/AccountingTransactionModule_viewJournalAsPdf.xml
+++ /dev/null
@@ -1,180 +0,0 @@
-<?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>
diff --git a/bt5/erp5_accounting_l10n_in/bt/revision b/bt5/erp5_accounting_l10n_in/bt/revision
index 2edeafb09d..b5045cc404 100644
--- a/bt5/erp5_accounting_l10n_in/bt/revision
+++ b/bt5/erp5_accounting_l10n_in/bt/revision
@@ -1 +1 @@
-20
\ No newline at end of file
+21
\ No newline at end of file
-- 
2.30.9