Class AccountancyOrderEventListener
java.lang.Object
org.salespointframework.accountancy.AccountancyOrderEventListener
An
ApplicationListener
for OrderEvents.OrderCompleted
events to create OrderPaymentEntry
for the
Order
.- Author:
- Oliver Gierke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
on
(OrderEvents.OrderCanceled event) Creates a counterOrderPaymentEntry
for the order that is canceled if there's a revenue entry for the given order already, i.e.void
on
(OrderEvents.OrderPaid event) Creates a new revenueOrderPaymentEntry
for the order that has been paid.
-
Constructor Details
-
AccountancyOrderEventListener
-
-
Method Details
-
on
Creates a new revenueOrderPaymentEntry
for the order that has been paid.- Parameters:
event
- must not be null.
-
on
Creates a counterOrderPaymentEntry
for the order that is canceled if there's a revenue entry for the given order already, i.e. the order has been paid before.- Parameters:
event
- must not be null.- Since:
- 7.1
-