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
0
Merge Requests
0
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
Mukul
erp5
Commits
1f0bbd94
Commit
1f0bbd94
authored
Dec 20, 2017
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
069abc69
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
15 deletions
+18
-15
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewFrenchAccountingTransactionFileExtendedActive.py
...dule_viewFrenchAccountingTransactionFileExtendedActive.py
+14
-11
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransaction_viewAsDestinationFECExtendedXML.zpt
...AccountingTransaction_viewAsDestinationFECExtendedXML.zpt
+1
-1
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransaction_viewAsSourceFECExtendedXML.zpt
...n_fr/AccountingTransaction_viewAsSourceFECExtendedXML.zpt
+3
-3
No files found.
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewFrenchAccountingTransactionFileExtendedActive.py
View file @
1f0bbd94
...
...
@@ -13,14 +13,11 @@ active_process = portal.portal_activities.newActiveProcess()
priority
=
4
#### AccountingTransactionModule_viewFrenchAccountingTransactionFileForPortalType
kind
=
'portal_type'
#
kind = 'portal_type'
#kind = 'ledger'
#
kind = 'portal_type_ledger'
kind
=
'portal_type_ledger'
# XXX we need proxy role for that
this_journal_active_process
=
portal
.
portal_activities
.
newActiveProcess
().
getRelativeUrl
()
method_kw
=
{
'active_process'
:
this_journal_active_process
,
'section_uid_list'
:
section_uid_list
,
}
...
...
@@ -56,7 +53,7 @@ if kind == 'ledger':
for
ledger_obj
in
ledger_obj_list
:
ledger_search_kw
=
search_kw
.
copy
()
ledger_search_kw
[
'default_ledger_uid'
]
=
ledger_obj
.
getUid
()
journal_search_kw_list
.
append
((
ledger_obj
.
getReference
()
,
ledger_obj
.
getReference
(),
ledger_search_kw
))
journal_search_kw_list
.
append
((
ledger_obj
.
getReference
()
or
ledger_obj
.
getId
(),
ledger_obj
.
getReference
()
or
ledger_obj
.
getId
(),
ledger_search_kw
))
elif
kind
==
'portal_type_ledger'
:
if
not
ledger_obj_list
:
...
...
@@ -64,19 +61,21 @@ elif kind == 'portal_type_ledger':
ledger_obj_list
.
append
(
category_tool
.
ledger
.
restrictedTraverse
(
ledger_relative_url
))
for
ledger_obj
in
ledger_obj_list
:
for
portal_type
in
portal
.
getPortalAccountingTransactionTypeList
():
portal_type_ledger_search_kw
=
search_kw
.
copy
()
portal_type_ledger_search_kw
[
'default_ledger_uid'
]
=
ledger_obj
.
getUid
()
for
portal_type
in
portal
.
getPortalAccountingTransactionTypeList
():
portal_type_ledger_search_kw
[
'portal_type'
]
=
portal_type
portal_type_obj
=
portal
.
portal_types
[
portal_type
]
journal_search_kw_list
.
append
((
"%s: %s"
%
(
portal_type
.
getCompactTranslatedTitle
(),
ledger_obj
.
getReference
()),
"%s: %s"
%
(
portal_type
.
getTranslatedTitle
(),
ledger_obj
.
getReference
()),
journal_search_kw_list
.
append
((
"%s: %s"
%
(
portal_type
_obj
.
getCompactTranslatedTitle
(),
ledger_obj
.
getReference
()
or
ledger_obj
.
getId
()),
"%s: %s"
%
(
portal_type
_obj
.
getTranslatedTitle
(),
ledger_obj
.
getReference
()
or
ledger_obj
.
getId
()),
portal_type_ledger_search_kw
))
# kind == 'portal_type'
else
:
if
ledger_obj_list
:
search_kw
[
'default_ledger_uid'
]
=
[
ledger_obj
.
getUid
()
for
ledger_obj
in
ledger_obj_list
]
for
portal_type
in
portal
.
getPortalAccountingTransactionTypeList
():
portal_type_obj
=
portal
.
portal_types
[
portal_type
]
portal_type_search_kw
=
search_kw
.
copy
()
...
...
@@ -86,6 +85,10 @@ else:
## search_kw
for
journal_code
,
journal_lib
,
search_kw
in
journal_search_kw_list
:
# XXX we need proxy role for that
this_journal_active_process
=
portal
.
portal_activities
.
newActiveProcess
()
method_kw
[
'active_process'
]
=
this_journal_active_process
.
getRelativeUrl
()
portal
.
portal_catalog
.
searchAndActivate
(
method_id
=
'AccountingTransaction_postFECExtendedResult'
,
method_kw
=
method_kw
,
...
...
@@ -99,7 +102,7 @@ for journal_code, journal_lib, search_kw in journal_search_kw_list:
journal_code
,
journal_lib
,
active_process
=
active_process
.
getRelativeUrl
(),
this_journal_active_process
=
this_journal_active_process
)
this_journal_active_process
=
this_journal_active_process
.
getRelativeUrl
()
)
#### AccountingTransactionModule_viewFrenchAccountingTransactionFileExtendedForPortalType
...
...
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransaction_viewAsDestinationFECExtendedXML.zpt
View file @
1f0bbd94
...
...
@@ -19,7 +19,7 @@
<Montantdevise tal:content="python: '%0.2f' % (line.getDestinationDebit() if line.getQuantity() >= 0 else line.getDestinationCredit())"></Montantdevise>
<Idevise tal:content="line/getResourceReference">Currency</Idevise>
<Montant tal:content="python: '%0.2f' % (line.getDestinationAssetDebit() if line.getQuantity() >= 0 else line.getDestinationAssetCredit())"></Montant>
<Sens tal:content="python: '-1' if line.getQuantity() else '+1'"></Sens>
<Sens tal:content="python: '-1' if line.getQuantity()
>= 0
else '+1'"></Sens>
<tal:block tal:replace="structure line/getDescription"/>
</ligne></tal:block>
</ecriture>
\ No newline at end of file
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransaction_viewAsSourceFECExtendedXML.zpt
View file @
1f0bbd94
...
...
@@ -16,10 +16,10 @@
<CompteAuxNum tal:content="python: third_party.getDestinationReference() or third_party.getSourceReference() or third_party.getReference() or third_party.getId()"></CompteAuxNum>
<CompteAuxLib tal:content="third_party/getTitle"></CompteAuxLib>
</tal:block>
<Montantdevise tal:content="python: '%0.2f' % (line.get
DestinationDebit() if line.getQuantity() >= 0 else line.getDestination
Credit())"></Montantdevise>
<Montantdevise tal:content="python: '%0.2f' % (line.get
SourceDebit() if line.getQuantity() >= 0 else line.getSource
Credit())"></Montantdevise>
<Idevise tal:content="line/getResourceReference">Currency</Idevise>
<Montant tal:content="python: '%0.2f' % (line.get
DestinationAssetDebit() if line.getQuantity() >= 0 else line.getDestination
AssetCredit())"></Montant>
<Sens tal:content="python: '-1' if line.getQuantity() else '+1'"></Sens>
<Montant tal:content="python: '%0.2f' % (line.get
SourceAssetDebit() if line.getQuantity() >= 0 else line.getSource
AssetCredit())"></Montant>
<Sens tal:content="python: '-1' if line.getQuantity()
>= 0
else '+1'"></Sens>
<tal:block tal:replace="structure line/getDescription"/>
</ligne></tal:block>
</ecriture>
\ No newline at end of file
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