Skip to Content
0
Former Member
Jan 09, 2006 at 08:57 AM

IPC formula

134 Views

Hello,

I need to develop the following formula in IPC:

320 Condition 1: Value1

330 Condition 2: Value3

340 Condition 3: (Value 1 + Value 2)*100

I guess that I have to use the findPricingCondition method, but I don't know how to work with.

I tried:

IPricingCondition ConRes1 = findPricingCondition(320 ,0);

IPricingCondition ConRes2 = findPricingCondition(330 ,0);

BigDecimal Res1 = ConRes1.getConditionRate().getValue();

BigDecimal Res2 = ConRes2.getConditionRate().getValue();

BigDecimal Res = Res1 + Res2 ;

return Res.multiply(100);

This code is very bad coded as I think but I have no idea about Java programing.