updates fields when changing supplier