public class QuotationUtility
extends java.lang.Object
Constructor and Description |
---|
QuotationUtility() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Integer | calcBaseItemQuantity(java.lang.String theUOM, java.lang.Double theQuantity, BaseItemAccessBean theBaseItemAB)
Calculates the base item quantity (with rounding DOWN).
|
static java.lang.Integer | calcBaseItemQuantityUp(java.lang.String theUOM, java.lang.Double theQuantity, BaseItemAccessBean theBaseItemAB)
Calculates the base item quantity (with rounding UP).
|
static QuantityAmount | calcQuantityAmount(OrderItemAccessBean theOrderItemAB, CommandContext theCommandContext, java.lang.Long theReferralInterfacePolicyId)
Calculates the quantity amount.
|
static BaseItemAccessBean | getBaseItemOf(OrderItemAccessBean theOrderItemAB)
Gets the base item access bean related to the order item access bean
|
static java.lang.Long | getDefaultContractReferralInterfacePolicyId(CommandContext commandContext, java.lang.Integer anStoreId)
Returns the policy Id of the ReferralInterface for the default Contract ID of the specified Store ID.
|
static java.lang.Long | getReferralInterfacePolicyIdFor(java.lang.Long theTradingAgreementId, CommandContext commandContext)
Sets the referral interface policy id based on the trading access bean for the quotation request.
|
static java.lang.Long | getReferralInterfacePolicyIdFor(com.ibm.commerce.order.objects.OrderQuotationRelAccessBean theOrderQuotationRelAB, CommandContext commandContext)
Sets the referral interface policy id based on the trading access bean for the quotation request.
|
static java.lang.String | mapUOM(java.lang.String theUOM, CommandContext theCommandContext, java.lang.Long theReferralInterfacePolicyId)
Maps the unit of measure from the Websphere Commerce system to the external system.
|
static java.lang.String | mapUOMToWCUnit(java.lang.String theUOM, CommandContext theCommandContext, java.lang.Long theReferralInterfacePolicyId)
Maps the unit of measure to the Websphere Commerce system from the external system.
|
public static java.lang.Long getReferralInterfacePolicyIdFor(java.lang.Long theTradingAgreementId, CommandContext commandContext) throws ECException
public static java.lang.Long getReferralInterfacePolicyIdFor(com.ibm.commerce.order.objects.OrderQuotationRelAccessBean theOrderQuotationRelAB, CommandContext commandContext) throws ECException
public static BaseItemAccessBean getBaseItemOf(OrderItemAccessBean theOrderItemAB) throws ECException
public static java.lang.String mapUOM(java.lang.String theUOM, CommandContext theCommandContext, java.lang.Long theReferralInterfacePolicyId) throws ECException
public static java.lang.String mapUOMToWCUnit(java.lang.String theUOM, CommandContext theCommandContext, java.lang.Long theReferralInterfacePolicyId) throws ECException
public static QuantityAmount calcQuantityAmount(OrderItemAccessBean theOrderItemAB, CommandContext theCommandContext, java.lang.Long theReferralInterfacePolicyId) throws ECException
public static java.lang.Integer calcBaseItemQuantityUp(java.lang.String theUOM, java.lang.Double theQuantity, BaseItemAccessBean theBaseItemAB) throws ECException
public static java.lang.Integer calcBaseItemQuantity(java.lang.String theUOM, java.lang.Double theQuantity, BaseItemAccessBean theBaseItemAB) throws ECException
public static java.lang.Long getDefaultContractReferralInterfacePolicyId(CommandContext commandContext, java.lang.Integer anStoreId) throws ECException