Commit 9b02516e authored by Jérome Perrin's avatar Jérome Perrin

FEC: export third party in CompteAux and use different CompteLib for different bank accounts

parent 1312450d
......@@ -48,9 +48,10 @@
<tal:block tal:repeat="line python:context.contentValues(portal_type=context.getPortalAccountingMovementTypeList())"><ligne\n
tal:define="account python:line.getDestinationValue(portal_type=\'Account\')" tal:condition="python: account is not None">\n
<CompteNum tal:content="account/Account_getGapId">Reference Compte (Account_getGapId)</CompteNum>\n
<CompteLib tal:content="account/getTranslatedTitle">Translated Title Compte</CompteLib>\n
<tal:block tal:replace="nothing"><CompteAuxNum></CompteAuxNum>\n
<CompteAuxLib></CompteAuxLib>\n
<CompteLib tal:content="line/Movement_getDestinationCompteLib">Translated Title Compte</CompteLib>\n
<tal:block tal:condition="python: account.getAccountType() in (\'asset/receivable\', \'liability/payable\')"\n
tal:define="third_party line/getSourceSectionValue"><CompteAuxNum tal:content="python: third_party.getDestinationReference() or third_party.getSourceReference() or third_party.getReference() or third_party.getId()"></CompteAuxNum>\n
<CompteAuxLib tal:content="third_party/getTitle"></CompteAuxLib></tal:block><tal:block>\n
<Montantdevise></Montantdevise>\n
<Idevise></Idevise></tal:block>\n
<Debit tal:content="python: \'%0.2f\' % (line.getDestinationAssetDebit() or line.getDestinationDebit())"></Debit>\n
......
......@@ -48,9 +48,10 @@
<tal:block tal:repeat="line python:context.contentValues(portal_type=context.getPortalAccountingMovementTypeList())"><ligne\n
tal:define="account python:line.getSourceValue(portal_type=\'Account\')" tal:condition="python: account is not None">\n
<CompteNum tal:content="account/Account_getGapId">Reference Compte (Account_getGapId)</CompteNum>\n
<CompteLib tal:content="account/getTranslatedTitle">Translated Title Compte</CompteLib>\n
<tal:block tal:replace="nothing"><CompteAuxNum></CompteAuxNum>\n
<CompteAuxLib></CompteAuxLib>\n
<CompteLib tal:content="line/Movement_getSourceCompteLib">Translated Title Compte</CompteLib>\n
<tal:block tal:condition="python: account.getAccountType() in (\'asset/receivable\', \'liability/payable\')"\n
tal:define="third_party line/getDestinationSectionValue"><CompteAuxNum tal:content="python: third_party.getDestinationReference() or third_party.getSourceReference() or third_party.getReference() or third_party.getId()"></CompteAuxNum>\n
<CompteAuxLib tal:content="third_party/getTitle"></CompteAuxLib></tal:block><tal:block>\n
<Montantdevise></Montantdevise>\n
<Idevise></Idevise></tal:block>\n
<Debit tal:content="python: \'%0.2f\' % (line.getSourceAssetDebit() or line.getSourceDebit())"></Debit>\n
......
<?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>account = context.getDestinationValue(portal_type=\'Account\')\n
\n
if account.isMemberOf(\'account_type/asset/cash/bank\'):\n
return "%s - %s" % (account.getTranslatedTitle(), context.getDestinationPaymentTitle())\n
\n
return account.getTranslatedTitle()\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Movement_getDestinationCompteLib</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>account = context.getSourceValue(portal_type=\'Account\')\n
\n
if account.isMemberOf(\'account_type/asset/cash/bank\'):\n
return "%s - %s" % (account.getTranslatedTitle(), context.getSourcePaymentTitle())\n
\n
return account.getTranslatedTitle()\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Movement_getSourceCompteLib</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
28
\ No newline at end of file
29
\ No newline at end of file
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