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() 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)
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)),
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