so found out that on a sales order, `item.quantity...
# advancedpdf
r
so found out that on a sales order,
item.quantitycommitted
is apparently a string value. I have a an
<#if item.quantitycommitted > 0>
statement that was working previously because NetSuite was silently doing a string to numeric conversation on
item.quantitycommitted
before evaluating, but threw Unexpected Errors when the quantity went over 999, due to the string value of
item.quantitycommitted
being
1,234
. Apparently a comma makes the string to numeric conversation throw the unexpected error (confirmed by Support via log lookup). Anyone know how to reliably get the numeric value of numeric fields within an Advanced PDF Template?
question not answered 1
d
Just putting it out there that the string built-in ?number won't work as:
it must be in the locale independent form, where the decimal separator is dot, and there's no grouping.
r
yup, that's what I was running into as well. So now I'm trying to figure out how to run a comparison against a numeric field, that NetSuite doesn't provide as a numeric field when inside the template engine