Commit 02cacf23 authored by Łukasz Nowak's avatar Łukasz Nowak

Use state not date.

planned transactions are expected not to be in payzen.
parent 0bc9bafa
...@@ -62,7 +62,7 @@ except ValueError, e:\n ...@@ -62,7 +62,7 @@ except ValueError, e:\n
if context.getSimulationState() not in [\'planned\', \'confirmed\']:\n if context.getSimulationState() not in [\'planned\', \'confirmed\']:\n
return\n return\n
\n \n
if context.PaymentTransaction_getPreviousPayzenId() is not None and context.getStartDate() is None:\n if context.PaymentTransaction_getPreviousPayzenId() is not None and context.getSimulationState() == \'planned\':\n
context.setStartDate(DateTime())\n context.setStartDate(DateTime())\n
context.updateCausalityState()\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 portal.system_event_module.newContent(title=\'Transaction %s Payzen registration\' % context.getTitle(), portal_type=\'Payzen Event\', source_value=service, destination_value=context).registerPayzen()\n
......
67 68
\ No newline at end of file \ 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