This topic contains 4 replies, has 0 voices, and was last updated by Vesku1980 8 years ago.
-
AuthorPosts
-
November 18, 2016 at 5:08 am #5969
Vesku1980Hello
I’m facing a huge problem with Inventory Details.
Our Client wants to add default values to this popup opened from Work Order Completion – Components row – Inventory Detail.
Default values are located behind the assemblyitem so basicly this a easy job to done if a script is possible to attach with this click on Inventory Detail.
Does anyone know that is this possible ?
I tried to find help from SuiteAnswers and Google but no luck there.
This is a cached copy. Click here to see the original post. -
November 18, 2016 at 8:33 am #5970
david.smithThe Inventory Details page can be scripted.
https://netsuite.custhelp.com/app/an…ail/a_id/27978
-
November 18, 2016 at 9:40 am #5971
Vesku1980Hello, thank you for the reply.
I know these functions but i can’t (or don’t know how) resolve my problem with those.
When i create a new Work Order Completion i get an error message after submitting the record although i have this kind of UserEvent script in After Submit Function.
Error Message : Please configure the inventory detail for the assemblyitem.
The original idea was that when i click the icon that opens the Inventory Detail popup LOT, Expirationdate and quantity would be automatically filled.
But i think that this is not possible?
I think that this can be solved with before submit Function but i don’t know how the get ID for the newRecord.
var newRec = nlapiGetNewRecord();
var id = newRec.getId();
returns null.
david.smith replied on 11/18/2016, 10:42 AM: New records do not have IDs until "After Submit"
-
November 18, 2016 at 12:53 pm #5972
Olivier Gagnon NCCoincidentally, I happen to have some work that also touched on WO Completion Iventory Detail Record.
The final answer is no: you cannot place scripting on them prior to saving.
You can script them in beforeSubmit, BUT, that doesn’t solve the problem that via the UI, a user is going to have to manually type something in, because NS won’t let you save without specifying the lot.
So the UE script can correct the values, but fundamentally, a user will need to write SOMETHING in there, just so NS lets them save.
-
November 18, 2016 at 2:10 pm #5973
Vesku1980Thank you both for assistance. Needs to tell to customer that no can do.
-
AuthorPosts
You must be logged in to reply to this topic.