Class OrderPositionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.order.impl.service.OrderPositionServiceImpl
- All Implemented Interfaces:
OrderPositionService
-
Constructor Summary
ConstructorDescriptionOrderPositionServiceImpl
(EntityDefaultValueService entityDefaultValueService, RefreshTotalsService refreshTotalsService, CurrentArticlePriceService currentArticlePriceService, BusinessUnitManager businessUnitManager, SecurityManager securityManager) -
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
setCreationContribution
(List<OrderPositionCreationContribution> copyContributions) 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.
-
Constructor Details
-
OrderPositionServiceImpl
public OrderPositionServiceImpl(EntityDefaultValueService entityDefaultValueService, RefreshTotalsService refreshTotalsService, CurrentArticlePriceService currentArticlePriceService, BusinessUnitManager businessUnitManager, SecurityManager securityManager)
-
-
Method Details
-
createOrderPosition
Description copied from interface:OrderPositionService
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.- Specified by:
createOrderPosition
in interfaceOrderPositionService
-
setValuesFromBillingPosition
Description copied from interface:OrderPositionService
Copies values from a given billing position to a given order position.- Specified by:
setValuesFromBillingPosition
in interfaceOrderPositionService
-
setValuesFromArticle
Description copied from interface:OrderPositionService
Copies values from a given article to a given order position- Specified by:
setValuesFromArticle
in interfaceOrderPositionService
-
setCreationContribution
@Autowired public void setCreationContribution(List<OrderPositionCreationContribution> copyContributions)
-