st-tu-dresden / salespoint

A framework to develop point of sales applications, powered by Java and Spring Boot
https://tu-dresden.de/ing/informatik/smt/st/forschung/forschungsprojekte/salespoint
Apache License 2.0
178 stars 49 forks source link

Publish event when accountancy entries are created #449

Closed stuffyAI closed 11 months ago

stuffyAI commented 11 months ago

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:

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.