Commit ea5cf6d2 authored by Jérome Perrin's avatar Jérome Perrin

Invoice Printout: display registered capital and corporate code in the header

parent e9b00534
...@@ -380,6 +380,10 @@ data_dict = {\n ...@@ -380,6 +380,10 @@ data_dict = {\n
getEmail(source_administration.getProperty(\'email_text\', \'\')),\n getEmail(source_administration.getProperty(\'email_text\', \'\')),\n
\'source_administration_vatid\':\n \'source_administration_vatid\':\n
getVatId(source_administration.getProperty(\'vat_code\', \'\')),\n getVatId(source_administration.getProperty(\'vat_code\', \'\')),\n
\'source_administration_registeredcapital\':\n
getSocialCapital(source_administration.getProperty(\'social_capital\', \'\')),\n
\'source_administration_corporateregcode\':\n
getCorporateRegCode(source_administration.getProperty(\'corporate_registration_code\', \'\')),\n
\n \n
\'source_title\': source.getProperty(\'corporate_name\') or source.getTitle(),\n \'source_title\': source.getProperty(\'corporate_name\') or source.getTitle(),\n
\'source_address\': getOneLineAddress(\n \'source_address\': getOneLineAddress(\n
...@@ -457,6 +461,10 @@ data_dict = {\n ...@@ -457,6 +461,10 @@ data_dict = {\n
getEmail(destination_administration.getProperty(\'email_text\', \'\')),\n getEmail(destination_administration.getProperty(\'email_text\', \'\')),\n
\'destination_administration_vatid\':\n \'destination_administration_vatid\':\n
getVatId(destination_administration.getProperty(\'vat_code\', \'\')),\n getVatId(destination_administration.getProperty(\'vat_code\', \'\')),\n
\'destination_administration_registeredcapital\':\n
getSocialCapital(destination_administration.getProperty(\'social_capital\', \'\')),\n
\'destination_administration_corporateregcode\':\n
getCorporateRegCode(destination_administration.getProperty(\'corporate_registration_code\', \'\')),\n
\n \n
\'destination_decision_title\': context.getDestinationDecisionTitle() or \'\',\n \'destination_decision_title\': context.getDestinationDecisionTitle() or \'\',\n
\'destination_decision_telfax\': getPhoneAndFax(destination_decision.getTelephoneText() or \'\',\n \'destination_decision_telfax\': getPhoneAndFax(destination_decision.getTelephoneText() or \'\',\n
......
...@@ -345,6 +345,12 @@ AAA=</string> </value> ...@@ -345,6 +345,12 @@ AAA=</string> </value>
<text:p text:style-name="Header"\n <text:p text:style-name="Header"\n
tal:content="python: here.getPortalType().startswith(\'Purchase\') and data_dict[\'destination_administration_email\'] or data_dict[\'source_administration_email\']">\n tal:content="python: here.getPortalType().startswith(\'Purchase\') and data_dict[\'destination_administration_email\'] or data_dict[\'source_administration_email\']">\n
</text:p>\n </text:p>\n
<text:p text:style-name="Header"\n
tal:content="python: here.getPortalType().startswith(\'Purchase\') and data_dict[\'destination_administration_corporateregcode\'] or data_dict[\'source_administration_corporateregcode\']">\n
</text:p>\n
<text:p text:style-name="Header"\n
tal:content="python: here.getPortalType().startswith(\'Purchase\') and data_dict[\'destination_administration_registeredcapital\'] or data_dict[\'source_administration_registeredcapital\']">\n
</text:p>\n
<text:p text:style-name="Header"\n <text:p text:style-name="Header"\n
tal:content="python: here.getPortalType().startswith(\'Purchase\') and data_dict[\'destination_administration_vatid\'] or data_dict[\'source_administration_vatid\']">\n tal:content="python: here.getPortalType().startswith(\'Purchase\') and data_dict[\'destination_administration_vatid\'] or data_dict[\'source_administration_vatid\']">\n
</text:p>\n </text:p>\n
...@@ -371,8 +377,7 @@ AAA=</string> </value> ...@@ -371,8 +377,7 @@ AAA=</string> </value>
</style:master-page>\n </style:master-page>\n
<style:master-page style:name="Endnote" style:page-layout-name="pm2"/>\n <style:master-page style:name="Endnote" style:page-layout-name="pm2"/>\n
</office:master-styles>\n </office:master-styles>\n
</office:document-styles>\n </office:document-styles>
]]></unicode> </value> ]]></unicode> </value>
</item> </item>
...@@ -402,7 +407,7 @@ AAA=</string> </value> ...@@ -402,7 +407,7 @@ AAA=</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <unicode></unicode> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment