st-tu-dresden/salespoint

Publish event when accountancy entries are created

Closed this issue · 0 comments

As per heading, publish an Event when a new AccountancyEntry gets created, preferably so that both normal and transactional EventListeners can register on it.

Use-Case:

  • instant addition to entities that may collect such entries

Alternative:
Have Events that come from methods creating AccountancyEntries, such as OrderEvents.OrderPaid, also contain the created AccountancyEntry(ies).
This could allow for some more fine-tuning, but I have no idea where this would be much better than the former option.