Hi All, I have a SO that uses multi location INV. ...
# suitescript
r
Hi All, I have a SO that uses multi location INV. SO has 2 lines with different locations. In 2.0 I'm trying to created IF from SO but get the following error
Copy code
"name": "USER_ERROR","message": "Fulfillments can be shipped from only one location when using Multi-Location Inventory.",
• I only select the first line via the script • I tried to Dynamic vs non dynamic (2.0) • I tried passing in the location to the line (if order has all lines in 1 location works without setting the location) • I tried to clear the fulfil box on all lines before selecting the  first line... Any idea what would work?
t
@reza.seedin I ran into something similar a few weeks ago. The solution that I came up with is, for items that you are not fulfilling, to set itemIsFulfilled to false, and be sure to set quantity to false.
r
OhhI i didn't think about the qty.. will try that now.. Btw do you use
dynamic
or not? not sure which is better
that didn't work either hmmm @tdietrich can I get a snapshot of the code you used?
b
the fulfill checboxes internal id is the badly named
itemreceive
set that to false on the lines you dont want to fulfill
r
Yep I have tried to uncheck
itemreceive
first . and then select the line I want . works when all the locations are the same
b
what code are you using
r
2.0 I think i may have found the issue
i changed it from dynamic to non dynamic
@battk do you normally use dynamic as your default
b
i like the standard mode better
👍 1
r
Ok will use that by default next time for 2.0 thanks for everyone's input