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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
d473b1c9
Commit
d473b1c9
authored
Nov 06, 2020
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_payroll&l10n_fr: display employer instead of company
parent
244f0873
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_getODTDataDict.py
..._skins/erp5_payroll/PaySheetTransaction_getODTDataDict.py
+13
-0
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/PaySheetTransaction_generatePayslipReportHeader.zpt
...0n_fr/PaySheetTransaction_generatePayslipReportHeader.zpt
+8
-2
No files found.
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_getODTDataDict.py
View file @
d473b1c9
...
...
@@ -162,6 +162,10 @@ destination_section = context.getDestinationSectionValue()
if
destination_section
is
None
:
destination_section
=
EmptyOrganisation
()
destination_trade
=
context
.
getDestinationTradeValue
()
if
destination_trade
is
None
:
destination_trade
=
EmptyOrganisation
()
source_administration
=
context
.
getSourceAdministrationValue
(
portal_type
=
'Organisation'
)
if
source_administration
is
None
:
...
...
@@ -304,6 +308,15 @@ data_dict = {
'destination_section_social_address'
:
social_organisation
is
not
None
and
getOneLineAddress
(
\
social_organisation
.
getDefaultAddressText
(),
social_organisation
.
getDefaultAddressRegionTitle
())
or
''
,
'destination_trade_title'
:
destination_trade
.
getProperty
(
'corporate_name'
)
or
\
destination_trade
.
getTitle
(),
'destination_trade_address'
:
getOneLineAddress
(
context
.
getDestinationTrade
()
and
context
.
getDestinationTradeValue
().
getDefaultAddressText
()
or
''
,
context
.
getDestinationTrade
()
and
context
.
getDestinationTradeValue
().
getDefaultAddressRegionTitle
()
or
''
),
'destination_trade_corporate_registration_codeid'
:
getCorporateRegistrationCodeId
(
context
.
getDestinationTrade
()
and
context
.
getDestinationTradeValue
().
getProperty
(
'corporate_registration_code'
)
or
''
),
'destination_trade_activity_codeid'
:
getActivityCodeId
(
context
.
getDestinationTrade
()
and
context
.
getDestinationTradeValue
().
getProperty
(
'activity_code'
)
or
''
),
'destination_administration_title'
:
\
destination_administration
.
getProperty
(
'corporate_name'
)
or
\
destination_administration
.
getTitle
(),
...
...
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/PaySheetTransaction_generatePayslipReportHeader.zpt
View file @
d473b1c9
...
...
@@ -14,10 +14,16 @@
</div>
<div class="payslip-header-detail">
<div class="payslip-header-employer">
<span class='payslip-report-emphasis' tal:content='python:data_dict["destination_section_title"]'>destination_section</span>
<!--span class='payslip-report-emphasis' tal:content='python:data_dict["destination_section_title"]'>destination_section</span>
<span tal:condition="data_dict/destination_section_address" tal:content='python:data_dict["destination_section_address"]'>address</span>
<span tal:condition='data_dict/destination_section_corporate_registration_codeid' tal:content='python:data_dict["destination_section_corporate_registration_codeid"]'>SIRET</span>
<span tal:condition='data_dict/destination_section_activity_codeid' tal:content='python:data_dict["destination_section_activity_codeid"]'>APE</span>
<span tal:condition='data_dict/destination_section_activity_codeid' tal:content='python:data_dict["destination_section_activity_codeid"]'>APE</span-->
<span class='payslip-report-emphasis' tal:content='python:data_dict["destination_trade_title"]'>destination_trade</span>
<span tal:condition="data_dict/destination_trade_address" tal:content='python:data_dict["destination_trade_address"]'>address</span>
<span tal:condition='data_dict/destination_trade_corporate_registration_codeid' tal:content='python:data_dict["destination_trade_corporate_registration_codeid"]'>SIRET</span>
<span tal:condition='data_dict/destination_trade_activity_codeid' tal:content='python:data_dict["destination_trade_activity_codeid"]'>APE</span>
</div>
<div class="payslip-header-employee">
<span class='payslip-report-emphasis' tal:content='python:data_dict["source_section_title"].upper()'>source_section</span>
...
...
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