Yeh I'm not overwriting the tax codes, I'm setting the tax code field just like you could in manually in the form.
This works fine with the fieldChanged trigger and using the item field as the triggered field.
So everytime I change an item or add one, the tax code gets set correctly.
For this determination we've added an extra field in the shipping address which isn't related to the nexus though.
If I change this field and therefore my shipping address is changed, I would like to redetermine the tax codes on every line which I do in the fieldChanged.
When debugging line by line, I see the lines getting changed correctly when the fieldChanged is triggered by the shippingaddress field but after a few more extra triggers, the tax code fields are resetted to the tax engine outcome