Commit e4ee1002 authored by Łukasz Nowak's avatar Łukasz Nowak

Make condition with sense.

Try to register only if previous one has been sucesffuly registered.
parent 940f67bf
......@@ -65,7 +65,7 @@ if context.getSimulationState() not in [\'planned\', \'confirmed\']:\n
if context.getSimulationState() == \'confirmed\':\n
portal.system_event_module.newContent(title=\'Transaction %s Payzen status update\' % context.getTitle(), portal_type=\'Payzen Event\', source_value=service, destination_value=context).updateStatus()\n
return\n
else:\n
elif context.PaymentTransaction_getPreviousPayzenId() is not None:\n
context.setStartDate(DateTime())\n
context.updateCausalityState()\n
portal.system_event_module.newContent(title=\'Transaction %s Payzen registration\' % context.getTitle(), portal_type=\'Payzen Event\', source_value=service, destination_value=context).registerPayzen()\n
......
61
\ No newline at end of file
62
\ No newline at end of file
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