Class AgreementServices


  • public class AgreementServices
    extends java.lang.Object
    Services for Agreement (Accounting)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int decimals  
      static java.lang.String module  
      static java.lang.String resource  
      static java.math.RoundingMode rounding  
      static java.math.BigDecimal ZERO  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.Object> getCommissionForProduct​(DispatchContext ctx, java.util.Map<java.lang.String,​java.lang.Object> context)
      Determines commission receiving parties and amounts for the provided product, price, and quantity
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • module

        public static final java.lang.String module
      • decimals

        public static final int decimals
      • rounding

        public static final java.math.RoundingMode rounding
      • ZERO

        public static final java.math.BigDecimal ZERO
    • Constructor Detail

      • AgreementServices

        public AgreementServices()
    • Method Detail

      • getCommissionForProduct

        public static java.util.Map<java.lang.String,​java.lang.Object> getCommissionForProduct​(DispatchContext ctx,
                                                                                                     java.util.Map<java.lang.String,​java.lang.Object> context)
        Determines commission receiving parties and amounts for the provided product, price, and quantity
        Parameters:
        ctx - The DispatchContext that this service is operating in.
        context - Map containing the input parameters. productId String Product Id invoiceItemTypeId String Invoice Type amount BigDecimal Entire amount quantity BigDecimal Quantity
        Returns:
        Map with the result of the service, the output parameters. commissions List List of Maps each containing partyIdFrom String commission paying party partyIdTo String commission receiving party commission BigDecimal Commission days Long term days currencyUomId String Currency productId String Product Id