Skip to Content
0
Former Member
Jul 28, 2005 at 03:44 PM

IPC - overwriteConditionBase

23 Views

Hi

I am trying to create a new customized IPC formula of condition base type.

My problem is that this formula does not appear in CRM, as if it has not been created.

I had already created formulas of Condition Value type, and everything worked fine.

How I coded it:

public BigDecimal overwriteConditionBase(IPricingItemUserExit      prItem,
								 ILastPrice                lastPrice,
											 IPricingConditionUserExit prCondition,
										     int                       baseFormNo) {

switch (baseFormNo) {
        case 965:
            if (prCondition.getConditionControl() == PricingCustomizingConstants.Control.VALUE_FIXED_FOR_BILLED_ITEMS){
             prCondition.setConditionControl(PricingCustomizingConstants.Control.ADJUST_FOR_QUANTITY_VARIANCE);
            }
    return null;
 default:
  throw new FormulaNotImplementedException(prItem, "base formula", baseFormNo); 
 }
}



public int[] getConditionBaseFormulaNumbers() {
  return new int[965];
}

What else should I do? Am I missing something?

I checked standard formulas of this type and they are coded same way.

Any ideas?

Regards,

Ronaldo.