Class MergePositionTasksContribution

java.lang.Object
ch.tocco.nice2.optional.order.api.action.invoice.service.MergePositionTasksContribution

public class MergePositionTasksContribution extends Object
set a field or relation to be checked in MergeOrdersTask or MergeOrderPositionsTask set isRelation="true" for relations Add field to check:

 @Bean
 public MergePositionTasksContribution priceOrderCurrencyMergePositionTasksContribution() {
     OrderPositionCreationContribution contribution = new OrderPositionCreationContribution();
     contribution.setName("price_order_currency");
     return contribution;
 }
 
Add relation to check:

 @Bean
 public MergePositionTasksContribution userMergePositionTasksContribution() {
     MergePositionTasksContribution contribution = new MergePositionTasksContribution();
     contribution.setName("relUser");
     contribution.setIsRelation(true);
     return contribution;
 }
 
  • Constructor Details

    • MergePositionTasksContribution

      public MergePositionTasksContribution()
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • isRelation

      public boolean isRelation()
    • setIsRelation

      public void setIsRelation(boolean isRelation)