Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Rafael Monnerat
erp5
Commits
ccb1c811
Commit
ccb1c811
authored
10 years ago
by
Kazuhiko Shiozaki
Committed by
Vincent Pelletier
8 years ago
Browse files
Options
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
)
This diff is collapsed.
Click to expand it.
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
)),
This diff is collapsed.
Click to expand it.
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