Sales Order Item Script

Dear All,

I want to change functionality on selection of item in sales order at client side.
For this i want to know, from where it is handling currently.
I want to change orignal code for my need.


What functionaity?

Very bad idea. You will never be able to update then.

Actually we have two types of discounts for every item one is claimable and the other is unclaimable.
I want that when user select item in sales order then system fetch claimable and uncalimable discounts automatically from item price based on selected price list and calculate total discount by adding claimable and unclaimable discounts.

How can i do this?

Note: i have added calimable and unclaimable discounts filed in item price and sales order item