I want to wrote a pre-write script under PO details, so when people enter the unit cost which is higher than 1% of the last cost, a message appear. The following script pass, but doesn't do anything. Can anyone help
lastcost = 0 cost = 0 lastcostcheck…