Class InvoiceLogicServiceImpl
java.lang.Object
ch.tocco.nice2.optional.order.impl.action.invoice.service.InvoiceLogicServiceImpl
- All Implemented Interfaces:
InvoiceLogicService
-
Constructor Summary
ConstructorsConstructorDescriptionInvoiceLogicServiceImpl(Context context, QueryBuilderFactory queryBuilderFactory, GroovyEvaluationService groovyEvaluationService) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessArticleLogic(Entity article, Entity orderPosition, Entity source) Processes article invoice logic - Every article logic, that is connected to the given article (relArticle_invoice_logic) is processed - The order of processing is determined by the "sorting" on the Article_invoice_logic entityvoidprocessJavaLogic(String logicId, Entity article, Entity orderPosition, Entity source) Processes a registered invoice logicvoidsetInvoiceLogicStrategyMap(List<InvoiceLogicStrategy> invoiceLogicStrategy)
-
Constructor Details
-
InvoiceLogicServiceImpl
public InvoiceLogicServiceImpl(Context context, QueryBuilderFactory queryBuilderFactory, GroovyEvaluationService groovyEvaluationService)
-
-
Method Details
-
processJavaLogic
Processes a registered invoice logic- Specified by:
processJavaLogicin interfaceInvoiceLogicService- Throws:
IllegalArgumentException- if the given logicId is not registered
-
processArticleLogic
Processes article invoice logic - Every article logic, that is connected to the given article (relArticle_invoice_logic) is processed - The order of processing is determined by the "sorting" on the Article_invoice_logic entity- Specified by:
processArticleLogicin interfaceInvoiceLogicService
-
setInvoiceLogicStrategyMap
@Autowired(required=false) public void setInvoiceLogicStrategyMap(List<InvoiceLogicStrategy> invoiceLogicStrategy)
-