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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
9a6fe459
Commit
9a6fe459
authored
Jan 08, 2018
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_payroll_l10n_fr: do not hardcode module's id
Proof is indeed it already changed
parent
a547aa13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNMonthlyReport_getDataDict.py
...kins/erp5_payroll_l10n_fr/DSNMonthlyReport_getDataDict.py
+2
-1
No files found.
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNMonthlyReport_getDataDict.py
View file @
9a6fe459
...
@@ -103,10 +103,11 @@ if block_id == 'S21.G00.06':
...
@@ -103,10 +103,11 @@ if block_id == 'S21.G00.06':
# Calculate the average manpower of all year, if month is December
# Calculate the average manpower of all year, if month is December
# XXX : should be fixed to be corrct when there exists DSN reports for
# XXX : should be fixed to be corrct when there exists DSN reports for
# different establishments or organisations, or replaced/cancelled DSN reports
# different establishments or organisations, or replaced/cancelled DSN reports
social_declaration_module
=
portal
.
getDefaultModule
(
"DSN Monthly Report"
)
average_manpower
=
''
average_manpower
=
''
if
context
.
getEffectiveDate
().
month
()
==
12
:
if
context
.
getEffectiveDate
().
month
()
==
12
:
manpower_list
=
[]
manpower_list
=
[]
report_list
=
portal
.
ds
n_module
.
searchFolder
(
effective_date
=
str
(
context
.
getEffectiveDate
().
year
()))
report_list
=
social_declaratio
n_module
.
searchFolder
(
effective_date
=
str
(
context
.
getEffectiveDate
().
year
()))
for
month_report
in
report_list
:
for
month_report
in
report_list
:
manpower_list
.
append
(
int
(
month_report
.
getQuantity
()))
manpower_list
.
append
(
int
(
month_report
.
getQuantity
()))
average_manpower
=
str
(
sum
(
manpower_list
)
/
len
(
manpower_list
))
average_manpower
=
str
(
sum
(
manpower_list
)
/
len
(
manpower_list
))
...
...
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