Interface OrderPositionService
- All Known Implementing Classes:
OrderPositionServiceImpl
public interface OrderPositionService
Service that may be used for creating order positions
Contains methods to copy values from articles and billing positions to the order position.
Copy logic may be adapted using the hivemodule contribution "OrderPositionCreationContribution"
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrderPosition
(Context context, Entity order, Entity billingPosition) Creates a new order position entity, links it to the order, copies all values from the given billing position and article (billingPosition.relArticle) to the created order position.void
setValuesFromArticle
(Entity orderPosition, Entity article) Copies values from a given article to a given order positionvoid
setValuesFromBillingPosition
(Entity orderPosition, Entity billingPosition) Copies values from a given billing position to a given order position.
-
Method Details
-
createOrderPosition
Creates a new order position entity, links it to the order, copies all values from the given billing position and article (billingPosition.relArticle) to the created order position. A transaction is required in the given context. -
setValuesFromBillingPosition
Copies values from a given billing position to a given order position. -
setValuesFromArticle
Copies values from a given article to a given order position
-