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
preetwinder
erp5
Commits
8e461687
Commit
8e461687
authored
Jul 05, 2017
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounting: fix some indentation / coding style
parent
098f2527
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
48 deletions
+51
-48
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAvailableGapList.py
...kins/erp5_accounting/AccountModule_getAvailableGapList.py
+3
-3
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountsReportSectionList.py
...ounting/AccountModule_getBankAccountsReportSectionList.py
+33
-30
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getOtherPartiesReportSectionList.py
...ounting/AccountModule_getOtherPartiesReportSectionList.py
+15
-15
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAvailableGapList.py
View file @
8e461687
...
...
@@ -5,8 +5,8 @@
item_list
=
[(
''
,
''
)]
countries
=
context
.
portal_categories
.
gap
.
objectValues
()
for
country
in
countries
:
for
gap
in
country
.
objectValues
()
:
for
country
in
countries
:
for
gap
in
country
.
objectValues
():
path
=
gap
.
getRelativeUrl
()
item_list
.
append
(
((
country
.
getTranslatedTitle
()
+
'/'
+
gap
.
getTranslatedTitle
()),
...
...
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountsReportSectionList.py
View file @
8e461687
...
...
@@ -12,12 +12,12 @@ from_date = request.get('from_date', None)
result
=
[]
params
=
{
'to_date'
:
to_date
,
'section_category'
:
transaction_section_category
,
'simulation_state'
:
transaction_simulation_state
,
'accounting_transaction_line_currency'
:
None
,
'report_depth'
:
5
}
'to_date'
:
to_date
,
'section_category'
:
transaction_section_category
,
'simulation_state'
:
transaction_simulation_state
,
'accounting_transaction_line_currency'
:
None
,
'report_depth'
:
5
}
if
from_date
:
params
[
'from_date'
]
=
from_date
...
...
@@ -25,7 +25,8 @@ if from_date:
groupCategory
=
context
.
portal_categories
.
restrictedTraverse
(
transaction_section_category
)
entities
=
groupCategory
.
getGroupRelatedValueList
(
portal_type
=
(
'Organisation'
,
'Person'
))
entity_columns
=
(
(
'title'
,
'Title'
),
entity_columns
=
(
(
'title'
,
'Title'
),
(
'getStopDate'
,
'Date'
),
(
'reference'
,
'Invoice No'
),
(
'getDestinationSectionTitle'
,
'Third Party'
),
...
...
@@ -34,25 +35,27 @@ entity_columns = ( ('title', 'Title'),
(
'source_debit'
,
'Debit'
),
(
'source_credit'
,
'Credit'
),
(
'source_balance'
,
'Balance'
),
)
)
for
entity
in
entities
:
result
.
append
(
ReportSection
(
path
=
context
.
getPhysicalPath
(),
result
.
append
(
ReportSection
(
path
=
context
.
getPhysicalPath
(),
title
=
'Bank accounts for %s'
%
entity
.
getTitle
(),
level
=
1
,
form_id
=
None
)
)
for
bank
in
entity
.
searchFolder
(
portal_type
=
'Bank Account'
):
o
=
bank
.
getObject
()
result
.
append
(
ReportSection
(
title
=
'%s (%s)'
%
(
o
.
getTitle
(),
entity
.
getTitle
()),
ReportSection
(
title
=
'%s (%s)'
%
(
o
.
getTitle
(),
entity
.
getTitle
()),
level
=
2
,
path
=
o
.
getPhysicalPath
(),
form_id
=
'BankAccount_viewAccountingTransactionList'
,
## XXX Here we must use accounting_selection, because stat scripts read this selection
selection_name
=
'accounting_selection'
,
selection_params
=
params
,
selection_columns
=
entity_columns
)
)
selection_columns
=
entity_columns
,))
return
result
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getOtherPartiesReportSectionList.py
View file @
8e461687
...
...
@@ -30,9 +30,9 @@ section_uid = context.Base_getSectionUidListForSectionCategory(
result
=
[]
params
=
{
'at_date'
:
at_date
,
'section_uid'
:
section_uid
,
'simulation_state'
:
simulation_state
'at_date'
:
at_date
,
'section_uid'
:
section_uid
,
'simulation_state'
:
simulation_state
}
if
from_date
:
...
...
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