Class AgreementServices
- java.lang.Object
-
- org.apache.ofbiz.accounting.agreement.AgreementServices
-
public class AgreementServices extends java.lang.Object
Services for Agreement (Accounting)
-
-
Constructor Summary
Constructors Constructor Description AgreementServices()
-
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
-
-
-
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
-
resource
public static final java.lang.String resource
- See Also:
- Constant Field Values
-
-
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
-
-