Class CreateOrderPositionActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.order.spi.action.CreateOrderPositionActionServiceImpl
- All Implemented Interfaces:
CreateOrderPositionActionService
public class CreateOrderPositionActionServiceImpl
extends Object
implements CreateOrderPositionActionService
replaces the original create action
two windows: small for fast creation and normal form with preset values (discount, article)
-
Constructor Summary
ConstructorDescriptionCreateOrderPositionActionServiceImpl
(Context context, RebindService rebindService, EntityDefaultValueService entityDefaultValueService, OrderPositionService orderPositionService, CurrentArticlePriceService currentArticlePriceService, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable Integer
getDiscount
(Entity orderEntity, @Nullable Entity article) getDiscount
(String orderKey) protected @Nullable Entity
getEntityByKeyString
(@Nullable String keyString, String entityName) void
saveOrderPosition
(RebindValue[] rebindValues, String orderKey, String articleKey) void
saveOrderPosition
(@Nullable String articleKey, BigDecimal count, String orderKey, @Nullable BigDecimal manualPrice, @Nullable Integer manualSorting)
-
Constructor Details
-
CreateOrderPositionActionServiceImpl
public CreateOrderPositionActionServiceImpl(Context context, RebindService rebindService, EntityDefaultValueService entityDefaultValueService, OrderPositionService orderPositionService, CurrentArticlePriceService currentArticlePriceService, SecurityManager securityManager)
-
-
Method Details
-
saveOrderPosition
public void saveOrderPosition(@Nullable @Nullable String articleKey, BigDecimal count, String orderKey, @Nullable @Nullable BigDecimal manualPrice, @Nullable @Nullable Integer manualSorting) - Specified by:
saveOrderPosition
in interfaceCreateOrderPositionActionService
-
saveOrderPosition
public void saveOrderPosition(RebindValue[] rebindValues, String orderKey, String articleKey) throws UnresolvableUriException, RebindException, UriStoreException, URISyntaxException - Specified by:
saveOrderPosition
in interfaceCreateOrderPositionActionService
- Throws:
UnresolvableUriException
RebindException
UriStoreException
URISyntaxException
-
getDiscount
- Specified by:
getDiscount
in interfaceCreateOrderPositionActionService
-
getEntityByKeyString
-
getDiscount
-