Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
bb48e202
Commit
bb48e202
authored
Aug 27, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounting: fix Node_getAccountingTransactionList compatibility
fixup
f4639fde
. params['section_uid'] can be a integer
parent
c9589047
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Node_getAccountingTransactionList.xml
...ins/erp5_accounting/Node_getAccountingTransactionList.xml
+6
-3
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Node_getAccountingTransactionList.xml
View file @
bb48e202
...
@@ -170,11 +170,14 @@ if from_date or is_pl_account:\n
...
@@ -170,11 +170,14 @@ if from_date or is_pl_account:\n
# I don\'t think this should happen\n
# I don\'t think this should happen\n
log(\'from_date not passed, defaulting to period_start_date\')\n
log(\'from_date not passed, defaulting to period_start_date\')\n
initial_balance_from_date = period_start_date\n
initial_balance_from_date = period_start_date\n
\n
\n
# Get previous debit and credit\n
# Get previous debit and credit\n
if not (initial_balance_from_date == period_start_date and is_pl_account):\n
if not (initial_balance_from_date == period_start_date and is_pl_account):\n
getInventoryAssetPrice = portal.portal_simulation.getInventoryAssetPrice\n
getInventoryAssetPrice = portal.portal_simulation.getInventoryAssetPrice\n
for section_uid in list(params.get(\'section_uid\', [])):\n
section_uid_list = params.get(\'section_uid\', [])\n
if not same_type(section_uid_list, []):\n
section_uid_list = [section_uid_list]\n
for section_uid in section_uid_list:\n
# We add one initial balance line per section. The main reason is to be able\n
# We add one initial balance line per section. The main reason is to be able\n
# to know the section_title for the GL export.\n
# to know the section_title for the GL export.\n
# XXX we may also want detail by resource or analytic columns sometimes.\n
# XXX we may also want detail by resource or analytic columns sometimes.\n
...
@@ -188,7 +191,7 @@ if from_date or is_pl_account:\n
...
@@ -188,7 +191,7 @@ if from_date or is_pl_account:\n
to_date=min(period_start_date,\n
to_date=min(period_start_date,\n
initial_balance_from_date),\n
initial_balance_from_date),\n
**get_inventory_kw)\n
**get_inventory_kw)\n
\n
\n
# then all movements between period_start_date and from_date\n
# then all movements between period_start_date and from_date\n
previous_total_debit = getInventoryAssetPrice(omit_asset_decrease=True,\n
previous_total_debit = getInventoryAssetPrice(omit_asset_decrease=True,\n
from_date=period_start_date,\n
from_date=period_start_date,\n
...
...
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