small change in one db trigger. add update method on supplyorder model and a test