One of my scheduled scripts is failing when run on...
# suitescript
a
One of my scheduled scripts is failing when run on Sales Orders. It has to iterate through the lines on the order, but when it reaches a Discount item, it fails with the error
Invalid costestimatetype reference key CUSTOM for item <item's internal id>
. The cost estimate type is ‘custom’ by default (I don’t know why) and I can’t change it.