How to hook into invoice and creditmemo creation?


#1

was reading through https://documentation.spryker.com/tutorials/introduction/handling-data-publish-and-synchronization.htm and I’m trying to figure out how to attach my actions to following events:

  • invoice is created
  • creditmemo is created

Can you shed some light on where are those stored within the postgres database ?
Or, if they are not - how can we trigger something on those two being created? Maybe there are any existing events?


#2

We don’t have module for Invoice and Credit memo handling.
In Spryer-Shop/Suite we have example of state machine for simple invoice process.

Here you find related documentation
https://documentation.spryker.com/state_machine_cookbook/state-machine-cookbook.htm