Class OrderPositionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.order.impl.service.OrderPositionServiceImpl
- All Implemented Interfaces:
OrderPositionService
-
Constructor Summary
ConstructorsConstructorDescriptionOrderPositionServiceImpl(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.voidsetCreationContribution(List<OrderPositionCreationContribution> copyContributions) voidsetValuesFromArticle(Entity orderPosition, Entity article) Copies values from a given article to a given order positionvoidsetValuesFromBillingPosition(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:OrderPositionServiceCreates 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:
createOrderPositionin interfaceOrderPositionService
-
setValuesFromBillingPosition
Description copied from interface:OrderPositionServiceCopies values from a given billing position to a given order position.- Specified by:
setValuesFromBillingPositionin interfaceOrderPositionService
-
setValuesFromArticle
Description copied from interface:OrderPositionServiceCopies values from a given article to a given order position- Specified by:
setValuesFromArticlein interfaceOrderPositionService
-
setCreationContribution
@Autowired public void setCreationContribution(List<OrderPositionCreationContribution> copyContributions)
-