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
Labels
Merge Requests
139
Merge Requests
139
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
Jobs
Commits
Open sidebar
nexedi
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
Show 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
()
portal
=
context
.
getPortalObject
()
search_kw
=
dict
(
kw
.
update
({
parent_portal_type
=
'Payment Transaction'
,
'parent_portal_type'
:
'Payment Transaction'
,
section_uid
=
context
.
getSourceSectionUid
(),
'section_uid'
:
context
.
getSourceSectionUid
(),
default_aggregate_uid
=
context
.
getUid
(),
'default_aggregate_uid'
:
context
.
getUid
(),
)
}
)
if
context
.
getSourcePayment
():
if
context
.
getSourcePayment
():
precision
=
context
.
getQuantityPrecisionFromResource
(
precision
=
context
.
getQuantityPrecisionFromResource
(
context
.
getSourcePaymentValue
().
getPriceCurrency
())
context
.
getSourcePaymentValue
().
getPriceCurrency
())
portal
.
REQUEST
.
set
(
'precision'
,
precision
)
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
from
Products.PythonScripts.standard
import
Object
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
search_kw
=
dict
(
kw
.
update
({
parent_portal_type
=
'Payment Transaction'
,
'parent_portal_type'
:
'Payment Transaction'
,
section_uid
=
context
.
getSourceSectionUid
(),
'section_uid'
:
context
.
getSourceSectionUid
(),
default_aggregate_uid
=
context
.
getUid
(),
'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