Amount calculation

Hai All,

Sales order

Salesline

QTY Price Currency Code Net Amount Amount INR (New Field)

10 10 usd 100 4600 (46*100)

10 10 EUR 100 1600 (16*100)

How do this calculation Where I have to write Code and how

hi,

write the code in qty modified and unit price modified methods…

write like this…

if 1usd = 50 rp

1 eur = 80rp

table.netamount = qty * price;

if(table.currencycode == “usd”)

{

table.amount(INR) =qty * price * 50; (or) table.netamount* 50;

}

else if(table.currencycode == “eur”)

{

table.amount(INR) =qty * price * 80; (or) table.netamount* 80;

}

table.netamount