New function for update fields

This function is for calculate qty on fields when the sales order is run