Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
a3b34013
Commit
a3b34013
authored
Sep 21, 2018
by
Arnaud Fontaine
Committed by
Cédric Le Ninivin
Apr 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_accounting_l10n_fr: Make sure that FEC XML output is always the same given the same data.
parent
9f48e8bd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_aggregateFrenchAccountingTransactionFile.py
...sactionModule_aggregateFrenchAccountingTransactionFile.py
+2
-1
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewComptabiliteAsFECXML.zpt
.../AccountingTransactionModule_viewComptabiliteAsFECXML.zpt
+1
-1
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransaction_viewAsDestinationFECXML.zpt
...l10n_fr/AccountingTransaction_viewAsDestinationFECXML.zpt
+1
-1
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransaction_viewAsSourceFECXML.zpt
...ting_l10n_fr/AccountingTransaction_viewAsSourceFECXML.zpt
+1
-1
No files found.
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_aggregateFrenchAccountingTransactionFile.py
View file @
a3b34013
...
...
@@ -6,7 +6,8 @@ portal = context.getPortalObject()
active_process
=
portal
.
restrictedTraverse
(
active_process
)
# XXX we need proxy role for this
result_list
=
active_process
.
getResultList
()
result_list
=
[
result
.
detail
.
decode
(
'zlib'
)
for
result
in
active_process
.
getResultList
()
]
result_list
.
sort
()
fec_file
=
context
.
AccountingTransactionModule_viewComptabiliteAsFECXML
(
at_date
=
at_date
,
...
...
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewComptabiliteAsFECXML.zpt
View file @
a3b34013
...
...
@@ -2,6 +2,6 @@
<comptabilite
xmlns:tal=
"http://xml.zope.org/namespaces/tal"
>
<exercice>
<DateCloture
tal:content=
"python: options['at_date'].strftime('%Y-%m-%d')"
>
20141231
</DateCloture>
<tal:block
tal:repeat=
"result options/result_list"
><tal:block
tal:replace=
"structure python: result
.detail.decode('zlib')
"
/></tal:block>
<tal:block
tal:repeat=
"result options/result_list"
><tal:block
tal:replace=
"structure python: result"
/></tal:block>
</exercice>
</comptabilite>
\ No newline at end of file
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransaction_viewAsDestinationFECXML.zpt
View file @
a3b34013
...
...
@@ -7,7 +7,7 @@
<tal:block tal:replace="nothing"><EcritureLet></EcritureLet>
<DateLet></DateLet></tal:block>
<ValidDate tal:content="python: context.getModificationDate().strftime('%Y-%m-%d')">Modification Date</ValidDate>
<tal:block tal:repeat="line python:
context.contentValues(portal_type=context.getPortalAccountingMovementTypeList(
))"><ligne
<tal:block tal:repeat="line python:
sorted(context.contentValues(portal_type=context.getPortalAccountingMovementTypeList()), key=lambda x: (x.getDestination(), x.getQuantity()
))"><ligne
tal:define="account python:line.getDestinationValue(portal_type='Account')" tal:condition="python: account is not None">
<CompteNum tal:content="account/Account_getGapId">Reference Compte (Account_getGapId)</CompteNum>
<CompteLib tal:content="line/Movement_getDestinationCompteLib">Translated Title Compte</CompteLib>
...
...
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransaction_viewAsSourceFECXML.zpt
View file @
a3b34013
...
...
@@ -7,7 +7,7 @@
<tal:block tal:replace="nothing"><EcritureLet></EcritureLet>
<DateLet></DateLet></tal:block>
<ValidDate tal:content="python: context.getModificationDate().strftime('%Y-%m-%d')">Modification Date</ValidDate>
<tal:block tal:repeat="line python:
context.contentValues(portal_type=context.getPortalAccountingMovementTypeList(
))"><ligne
<tal:block tal:repeat="line python:
sorted(context.contentValues(portal_type=context.getPortalAccountingMovementTypeList()), key=lambda x: (x.getSource(), x.getQuantity()
))"><ligne
tal:define="account python:line.getSourceValue(portal_type='Account')" tal:condition="python: account is not None">
<CompteNum tal:content="account/Account_getGapId">Reference Compte (Account_getGapId)</CompteNum>
<CompteLib tal:content="line/Movement_getSourceCompteLib">Translated Title Compte</CompteLib>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment