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
Tristan Cavelier
erp5
Commits
3066c9aa
Commit
3066c9aa
authored
Jun 29, 2017
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_payroll: XXX
parent
88e4b34f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
168 additions
and
15 deletions
+168
-15
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingTransactionModule_getNetSalaryReportSectionLineList.py
...ingTransactionModule_getNetSalaryReportSectionLineList.py
+0
-1
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingTransactionModule_getPaySheetLineReportSectionLineList.py
...TransactionModule_getPaySheetLineReportSectionLineList.py
+19
-13
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingTransactionModule_getPaySheetMovementMirrorSectionItemList.py
...sactionModule_getPaySheetMovementMirrorSectionItemList.py
+0
-1
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetLine_getCellRangeItemList.py
...l_skins/erp5_payroll/PaySheetLine_getCellRangeItemList.py
+19
-0
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetLine_getCellRangeItemList.xml
..._skins/erp5_payroll/PaySheetLine_getCellRangeItemList.xml
+62
-0
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_statInitializePreview.py
...erp5_payroll/PaySheetTransaction_statInitializePreview.py
+6
-0
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_statInitializePreview.xml
...rp5_payroll/PaySheetTransaction_statInitializePreview.xml
+62
-0
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheet_getODTStyleSheet.bin
...m/portal_skins/erp5_payroll/PaySheet_getODTStyleSheet.bin
+0
-0
No files found.
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingTransactionModule_getNetSalaryReportSectionLineList.py
View file @
3066c9aa
...
...
@@ -39,7 +39,6 @@ for inventory in portal.portal_simulation.getInventoryList(
precision
=
precision
,
from_date
=
from_date
,
at_date
=
at_date
,
only_accountable
=
False
,
group_by_resource
=
0
,
group_by_node
=
1
,
ledger
=
ledger
,
):
...
...
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingTransactionModule_getPaySheetLineReportSectionLineList.py
View file @
3066c9aa
...
...
@@ -23,33 +23,39 @@ ledger = request.get('ledger', None)
portal_simulation
=
context
.
getPortalObject
().
portal_simulation
inventory_param_dict
=
{
employee_params
=
{
'group_by_node'
:
1
,
'group_by_variation'
:
1
,
'section_uid'
:
section_uid_list
,
'contribution_share_uid'
:
context
.
portal_categories
.
contribution_share
.
employee
.
getUid
(),
'at_date'
:
at_date
,
'from_date'
:
from_date
,
'simulation_state'
:
simulation_state
,
'precision'
:
precision
,
'resource'
:
resource
,
'ledger'
:
ledger
,
'only_accountable'
:
False
,
'portal_type'
:
(
'Pay Sheet Line'
,
'Pay Sheet Cell'
),
}
}
employee_param_dict
=
inventory_param_dict
.
copy
()
employee_param_dict
[
'contribution_share_uid'
]
=
context
.
portal_categories
.
contribution_share
.
employee
.
getUid
()
employer_param_dict
=
inventory_param_dict
.
copy
()
employer_param_dict
[
'contribution_share_uid'
]
=
context
.
portal_categories
.
contribution_share
.
employer
.
getUid
()
employer_params
=
{
'group_by_node'
:
1
,
'group_by_variation'
:
1
,
'section_uid'
:
section_uid_list
,
'contribution_share_uid'
:
context
.
portal_categories
.
contribution_share
.
employer
.
getUid
(),
'at_date'
:
at_date
,
'from_date'
:
from_date
,
'simulation_state'
:
simulation_state
,
'precision'
:
precision
,
'resource'
:
resource
,
'ledger'
:
ledger
,
}
if
request
.
get
(
'mirror_section'
):
mirror_section
=
request
[
'mirror_section'
]
employee_param
_dict
[
'mirror_section'
]
=
mirror_section
employer_param
_dict
[
'mirror_section'
]
=
mirror_section
employee_param
s
[
'mirror_section'
]
=
mirror_section
employer_param
s
[
'mirror_section'
]
=
mirror_section
employee_inventory_list
=
portal_simulation
.
getInventoryList
(
**
employee_param
_dict
)
employer_inventory_list
=
portal_simulation
.
getInventoryList
(
**
employer_param
_dict
)
employee_inventory_list
=
portal_simulation
.
getInventoryList
(
**
employee_param
s
)
employer_inventory_list
=
portal_simulation
.
getInventoryList
(
**
employer_param
s
)
inventory_list
=
{}
...
...
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingTransactionModule_getPaySheetMovementMirrorSectionItemList.py
View file @
3066c9aa
...
...
@@ -5,7 +5,6 @@ getobject = portal.portal_catalog.getobject
for
x
in
portal
.
portal_simulation
.
getInventoryList
(
portal_type
=
(
'Pay Sheet Cell'
,
'Pay Sheet Line'
),
only_accountable
=
False
,
group_by_resource
=
0
,
group_by_section
=
0
,
group_by_mirror_section
=
1
):
...
...
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetLine_getCellRangeItemList.py
0 → 100644
View file @
3066c9aa
[
lines
,
cols
,
tabs
]
=
context
.
PaySheetLine_asCellRange
()
line_items
=
[]
col_items
=
[]
tab_items
=
[]
for
line_path
in
lines
:
line_title
=
context
.
portal_categories
.
resolveCategory
(
line_path
).
getTitleOrId
()
line_items
.
append
((
line_path
,
line_title
))
for
col_path
in
cols
:
col_title
=
context
.
portal_categories
.
resolveCategory
(
col_path
).
getTitleOrId
()
col_items
.
append
((
col_path
,
col_title
))
for
tab_path
in
tabs
:
tab_title
=
context
.
portal_categories
.
resolveCategory
(
tab_path
).
getTitleOrId
()
tab_items
.
append
((
tab_path
,
tab_title
))
return
[
line_items
,
col_items
,
tab_items
]
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetLine_getCellRangeItemList.xml
0 → 100644
View file @
3066c9aa
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
PaySheetLine_getCellRangeItemList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_statInitializePreview.py
0 → 100644
View file @
3066c9aa
from
Products.PythonScripts.standard
import
Object
request
=
container
.
REQUEST
return
[
Object
(
employer_share_preview
=
request
[
'stat_employer_share_preview'
],
employee_share_preview
=
request
[
'stat_employee_share_preview'
],
)]
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_statInitializePreview.xml
0 → 100644
View file @
3066c9aa
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
PaySheetTransaction_statInitializePreview
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheet_getODTStyleSheet.
obj
→
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheet_getODTStyleSheet.
bin
View file @
3066c9aa
File moved
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