Hi All, Im trying to create inventory worksheet us...
# suitescript
s
Hi All, Im trying to create inventory worksheet using script but for some items im getting below error:
Value -Infinity outside of valid min/max range for field invtnewunitcost
I'm not using this field to set the value in the script still im getting this error not sure why. Anyone have idea on this issue?
b
make the same change you are making in script in the ui
s
UI it is working as expected but in script only it is throwing error
I’m not using above field to set value
b
just because you didnt set a field doesnt mean that you didnt set a different field that sources it
s
Yes I can understand but it is not showing the field in record also
b
which columns do you have on your adjustment sublist?
s
I tried to get field using field explorer and I didn’t find and I checked the record xml also
I have item, new qty and new cost
Only three columns I’m using to set
b
and what are their ids
s
Let me check once
invtnewqty and invtnewvalue
Above are the field ids
b
new cost here would be the new value divided by the new quantity
with a -Infinity suggesting that the new quantity is 0
and the new value negative
what does your code look like
s
Understand
Let me check from my side
b
your account may have other costing methods used, but average is the one likely to be causing division related problems
s
Got it..let me check from my side and get back to you. Thank you