Commit ce00b55a authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_payzen: Don't regenerate Payments for Subscriptions

We intent to cancel the subscription and it's invoice.
parent 18565ae5
from Products.ERP5Type.Document import newTempSimulationMovement from Products.ERP5Type.Document import newTempSimulationMovement
portal = context.getPortalObject() portal = context.getPortalObject()
select_dict = {'causality_payment_transaction_related_uid': None} select_dict = {
'causality_payment_transaction_related_uid': None,
'causality_subscription_request_related_uid': None,
}
select_kw = kwargs.copy() select_kw = kwargs.copy()
select_kw.pop('portal_type', None) select_kw.pop('portal_type', None)
...@@ -14,6 +17,7 @@ select_kw.update( ...@@ -14,6 +17,7 @@ select_kw.update(
select_dict=select_dict, select_dict=select_dict,
left_join_list=select_dict.keys(), left_join_list=select_dict.keys(),
causality_payment_transaction_related_uid=None, causality_payment_transaction_related_uid=None,
causality_subscription_request_related_uid=None
) )
default_source_uid=portal.restrictedTraverse('account_module/receivable').getUid() default_source_uid=portal.restrictedTraverse('account_module/receivable').getUid()
......
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