hi all, is the `taxtotal` field on a Sales Order e...
# suitescript
m
hi all, is the
taxtotal
field on a Sales Order entirely read-only, or is there a work around with a script? As I understand it, that field is set by NetSuite by calculating the tax code and tax rate fields in the item sublist. We use Avalara, and also as I understand it, those fields on the sublist are taken care of by Avalara. We've never had issues. So, the reason I ask is because a new connector (Magento2 to NS) is getting an error when trying to set that field, which makes me wonder why it's needed or a different value. When I try to set the value of that field (
taxtotal
) with either a
submitFields()
or a
record.save()
after a load and a setValue, I get no errors, but it doesn't set the value at all. But anyway, I wanted to ask about being able manipulate that field with a script. Otherwise, I'd guess they need to store the different value in a custom field and do something with any discrepancy. Any ideas about this? Thank you so much!!
b
in general the answer is no
you want to capture the discrepancy in a custom field
m
Thank you. That's what I suspected (it being read-only).
b
theoretically you can use taxamountoverride if you are willing to rewrite how you do taxes on your transactions, but its not a sane solution in general and is crazier if you already have avalera doing it
❤️ 1