I was trying to override js function in pos_discount module in my custom module. I tried like this , by changing the discount variable value , but the problem was that the