Commit ccb1c811 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Vincent Pelletier

respect passed kw in PaymentTransactionGroup_getPaymentTransactionLineList.

parent 5a967a85
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)
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)),
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment