<@U6SNW6BC3> Is your record in dynamic mode? If so...
# suitescript
k
@mrob Is your record in dynamic mode? If so you may need to do something like
context.currentRecord.selectLine()
->
context.currentRecord.setCurrentSublistValue()
->
context.currentRecord.commitLine()
m
it is in dynamic mode in my script, which does indeed use setcurrent ->
invoice.setCurrentSublistValue('item', 'taxcode', taxCodeId);
k
and selectLine & commitLine?
m
yep, before and earlier
invoice.selectLine('item', i);
invoice.commitLine('item');
though here's the value from a console search ->
["-7", "-Not Taxable-"]
k
is this a text field or a drop down?
m
vs querying the invoice itself
invoice.getSublistValue('item', 'taxcode', 0) => "-8"
i'm going to open a support ticket
k
oky doky 🙂 good luck!
m
(it's a drop down, sorry missed that question)
just the basic Tax Code column on any transactional line item