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
Ludovic Kiefer
erp5
Commits
ccb1c811
Commit
ccb1c811
authored
Mar 23, 2015
by
Kazuhiko Shiozaki
Committed by
Vincent Pelletier
Apr 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
respect passed kw in PaymentTransactionGroup_getPaymentTransactionLineList.
parent
5a967a85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
bt5/erp5_payment_mean/SkinTemplateItem/portal_skins/erp5_payment_mean/PaymentTransactionGroup_getPaymentTransactionLineList.py
.../PaymentTransactionGroup_getPaymentTransactionLineList.py
+6
-6
bt5/erp5_payment_mean/SkinTemplateItem/portal_skins/erp5_payment_mean/PaymentTransactionGroup_statPaymentTransactionLineList.py
...PaymentTransactionGroup_statPaymentTransactionLineList.py
+7
-6
No files found.
bt5/erp5_payment_mean/SkinTemplateItem/portal_skins/erp5_payment_mean/PaymentTransactionGroup_getPaymentTransactionLineList.py
View file @
ccb1c811
portal
=
context
.
getPortalObject
()
search_kw
=
dict
(
parent_portal_type
=
'Payment Transaction'
,
section_uid
=
context
.
getSourceSectionUid
(),
default_aggregate_uid
=
context
.
getUid
(),
)
kw
.
update
({
'parent_portal_type'
:
'Payment Transaction'
,
'section_uid'
:
context
.
getSourceSectionUid
(),
'default_aggregate_uid'
:
context
.
getUid
(),
}
)
if
context
.
getSourcePayment
():
precision
=
context
.
getQuantityPrecisionFromResource
(
context
.
getSourcePaymentValue
().
getPriceCurrency
())
portal
.
REQUEST
.
set
(
'precision'
,
precision
)
return
portal
.
portal_simulation
.
getMovementHistoryList
(
**
search_
kw
)
return
portal
.
portal_simulation
.
getMovementHistoryList
(
**
kw
)
bt5/erp5_payment_mean/SkinTemplateItem/portal_skins/erp5_payment_mean/PaymentTransactionGroup_statPaymentTransactionLineList.py
View file @
ccb1c811
from
Products.PythonScripts.standard
import
Object
portal
=
context
.
getPortalObject
()
search_kw
=
dict
(
parent_portal_type
=
'Payment Transaction'
,
section_uid
=
context
.
getSourceSectionUid
(),
default_aggregate_uid
=
context
.
getUid
(),
)
kw
.
update
({
'parent_portal_type'
:
'Payment Transaction'
,
'section_uid'
:
context
.
getSourceSectionUid
(),
'default_aggregate_uid'
:
context
.
getUid
(),
'node_category'
:
'account_type/asset/cash/bank'
,
})
return
Object
(
total_quantity
=
portal
.
portal_simulation
.
getInventory
(
**
search_
kw
)),
return
Object
(
total_quantity
=
portal
.
portal_simulation
.
getInventory
(
**
kw
)),
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