Display method refresh issue for the existing lined

Hi Martin,
Can you guide me to achieve this logic?
I am a new techie,so spent almost 2 days on this.Based on the salespoolid,the discount percent needs to be calculated,As you mentioned I had written the logic in the above method but no luck .