Hey all - has anyone ever managed to kick off "Mar...
# suitescript
y
Hey all - has anyone ever managed to kick off "Mark Shipped" on a PO, programmatically? Is something like this possible for an in-built button? Also, how would this work as when done in the UI, opens up an un-saved IF that the user needs to manually go in and update?
b
mark shipped implies that this is a drop shipped purchase order
so that should be an item fulfillment from the purchase order
that is accomplished using record.transform
🙌 1
y
@battk that is correct! It is a drop ship PO In terms of the record.transform, it seems like you can't go from a PO to an IF? Is that right? These were the only options I was able to spot. Is there something else I would have to do in between?
https://stackoverflow.com/questions/71810463/suitescript-transforming-item-fulfillment-mark-shipped I did just find this thread, I'll give it a try and see how I go. Maybe I am just missing something from that list? 🙂
b
transform the sales order
y
Thank you! I had a feeling I might need to do it that way, although was hoping for the PO as not all items on the SO may be on the PO, but I'll see what I can come up with 🙂 thank you once again! Really do appreciate the help!
b
does the button in the ui exclude non drop shipped items?
y
This is a good question - let me see what happens here
Sorry got lost in a bit of a spiral but short answer is transforming the records from the SO takes all the items 😞 so it doesn't quite work. I'll try with mark shipped now as well.
b
its not terrible to just unmark the items that you dont want to ship
y
Yeahh, I'm just having a look into that now as well to only apply the itemreceive flag onto the items I'd need it to. Sorry for any troubles aha, and thanks for bearing with me 🙂