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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
f779d246
Commit
f779d246
authored
Jan 29, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounting_l10n_fr py3
parent
a5aae5ff
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
10 deletions
+7
-10
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_aggregateFrenchAccountingTransactionFile.py
...sactionModule_aggregateFrenchAccountingTransactionFile.py
+2
-5
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_doGetInventory.py
...rp5_accounting_l10n_fr/FiscalReportCell_doGetInventory.py
+1
-1
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_getBalance.py
...ns/erp5_accounting_l10n_fr/FiscalReportCell_getBalance.py
+1
-1
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_getBankAccountBalance.py
...ounting_l10n_fr/FiscalReportCell_getBankAccountBalance.py
+1
-1
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_getThirdPartyBalance.py
...counting_l10n_fr/FiscalReportCell_getThirdPartyBalance.py
+2
-2
No files found.
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_aggregateFrenchAccountingTransactionFile.py
View file @
f779d246
...
...
@@ -45,11 +45,8 @@ attachment_list = (
'content'
:
zipbuffer
.
getvalue
(),
'name'
:
zipfilename
,
},
)
subject
=
translateString
(
'French Accounting Transaction File'
)
if
six
.
PY2
:
subject
=
unicode
(
subject
)
else
:
subject
=
str
(
subject
)
subject
=
six
.
text_type
(
translateString
(
'French Accounting Transaction File'
))
portal
.
ERP5Site_notifyReportComplete
(
user_name
=
user_name
,
...
...
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_doGetInventory.py
View file @
f779d246
...
...
@@ -29,7 +29,7 @@ if ledger is not None:
if
isinstance
(
ledger
,
list
)
or
isinstance
(
ledger
,
tuple
):
ledger_uid
=
[
portal_categories
.
ledger
.
restrictedTraverse
(
item
).
getUid
()
for
item
in
ledger
]
else
:
ledger_uid
=
portal_categories
.
ledger
.
restrictedTraverse
(
item
).
getUid
()
ledger_uid
=
portal_categories
.
ledger
.
restrictedTraverse
(
ledger
).
getUid
()
else
:
ledger_uid
=
None
...
...
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_getBalance.py
View file @
f779d246
...
...
@@ -26,7 +26,7 @@ if ledger is not None:
if
isinstance
(
ledger
,
list
)
or
isinstance
(
ledger
,
tuple
):
kw
[
'ledger_uid'
]
=
[
portal_categories
.
ledger
.
restrictedTraverse
(
item
).
getUid
()
for
item
in
ledger
]
else
:
kw
[
'ledger_uid'
]
=
portal_categories
.
ledger
.
restrictedTraverse
(
item
).
getUid
()
kw
[
'ledger_uid'
]
=
portal_categories
.
ledger
.
restrictedTraverse
(
ledger
).
getUid
()
sum_
=
0.0
for
accountNumber
in
accounts
:
...
...
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_getBankAccountBalance.py
View file @
f779d246
...
...
@@ -25,7 +25,7 @@ if ledger is not None:
if
isinstance
(
ledger
,
list
)
or
isinstance
(
ledger
,
tuple
):
kw
[
'ledger_uid'
]
=
[
portal_categories
.
ledger
.
restrictedTraverse
(
item
).
getUid
()
for
item
in
ledger
]
else
:
kw
[
'ledger_uid'
]
=
portal_categories
.
ledger
.
restrictedTraverse
(
item
).
getUid
()
kw
[
'ledger_uid'
]
=
portal_categories
.
ledger
.
restrictedTraverse
(
ledger
).
getUid
()
sum_
=
0.0
for
account
in
accounts
:
...
...
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_getThirdPartyBalance.py
View file @
f779d246
...
...
@@ -30,7 +30,7 @@ if ledger is not None:
if
isinstance
(
ledger
,
list
)
or
isinstance
(
ledger
,
tuple
):
kw
[
'ledger_uid'
]
=
[
portal_categories
.
ledger
.
restrictedTraverse
(
item
).
getUid
()
for
item
in
ledger
]
else
:
kw
[
'ledger_uid'
]
=
portal_categories
.
ledger
.
restrictedTraverse
(
item
).
getUid
()
kw
[
'ledger_uid'
]
=
portal_categories
.
ledger
.
restrictedTraverse
(
ledger
).
getUid
()
# Find accounts that can be expanded according category membership
...
...
@@ -47,7 +47,7 @@ accounts_to_expand_by_tp = rec_cat.getAccountTypeRelatedValueList(**params) + \
total_balance
=
0.0
for
account_gap_number
in
accounts
:
# We get all acounts strict member of this GAP category
# We get all ac
c
ounts strict member of this GAP category
gap
=
context
.
restrictedTraverse
(
'portal_categories/'
+
getURL
(
account_gap_number
))
for
account
in
gap
.
getGapRelatedValueList
(
portal_type
=
'Account'
):
...
...
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