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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidon(OrderEvents.OrderCanceled event) Creates a counterOrderPaymentEntryfor the order that is canceled if there's a revenue entry for the given order already, i.e.voidon(OrderEvents.OrderPaid event) Creates a new revenueOrderPaymentEntryfor the order that has been paid.
-
Constructor Details
-
AccountancyOrderEventListener
-
-
Method Details
-
on
Creates a new revenueOrderPaymentEntryfor the order that has been paid.- Parameters:
event- must not be null.
-
on
Creates a counterOrderPaymentEntryfor 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
-