Class InvoiceLogicServiceImpl
java.lang.Object
ch.tocco.nice2.optional.order.impl.action.invoice.service.InvoiceLogicServiceImpl
- All Implemented Interfaces:
InvoiceLogicService
-
Constructor Summary
ConstructorDescriptionInvoiceLogicServiceImpl
(Context context, QueryBuilderFactory queryBuilderFactory, GroovyEvaluationService groovyEvaluationService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
processArticleLogic
(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 entityvoid
processJavaLogic
(String logicId, Entity article, Entity orderPosition, Entity source) Processes a registered invoice logicvoid
setInvoiceLogicStrategyMap
(List<InvoiceLogicStrategy> invoiceLogicStrategy)
-
Constructor Details
-
InvoiceLogicServiceImpl
public InvoiceLogicServiceImpl(Context context, QueryBuilderFactory queryBuilderFactory, GroovyEvaluationService groovyEvaluationService)
-
-
Method Details
-
processJavaLogic
Processes a registered invoice logic- Specified by:
processJavaLogic
in 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:
processArticleLogic
in interfaceInvoiceLogicService
-
setInvoiceLogicStrategyMap
@Autowired(required=false) public void setInvoiceLogicStrategyMap(List<InvoiceLogicStrategy> invoiceLogicStrategy)
-