I am trying to use a restlet to create a Canadian sales order. For Canada, tax codes are used at the item level and I need to be able to change the default tax code (selected by the tax schedule and based on the ship to province) to another that I have for that same province. (I cannot use the default as it is different for our retail and wholesale customers). But when I use...
rec.setCurrentSublistValue({
sublistId: 'item',
fieldId: 'taxCode',
value: '1444'
});
...in the line items attached to the sales order at create in my restlet, it either is ignored or overwritten by the default tax code.
I can change it manually in the sales order after creation but no matter what I have tried, I cannot get it to work in the restlet code.
Any ideas?