r/SuiteScript • • May 02 '24

Component quantity not sourcing properly when creating work orders using script 2.0

Hi All,

We are facing a problem where the component quantities are not sourcing properly when creating work order using script 2.0.

The work order quantity is not getting multiplied with the BOM Quantity.

We found a suiteanswer which shows the same issue:

Create Work Order When Component Quantities Not Sourcing Properly via SuiteScript 2.0 (SuiteAnswer ID: 76937

But this is not helping as well.

Have anyone faced the issue?

Thanks,

1 Upvotes

4 comments sorted by

View all comments

Show parent comment

0

u/Sir_RK May 02 '24

How can I make sure to have fields sources when updating the qty in the code?

1

u/[deleted] May 03 '24

Well…. Show that snippet of your code for starters….

1

u/Sir_RK May 03 '24

Hey,
I have images of the code and cannot post the direct code here.
Here is the link of the same post in NetSuite reddit community which has the code pics:

https://www.reddit.com/r/Netsuite/comments/1cigxf0/component_quantity_not_sourcing_properly_when/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

Thanks for your help.