RE: How to Manually Override Transaction Status

Hi, is it possible to manually override a transaction status with SuiteScript? I set the field, but it seems to never stick. Is status not a stored value? For instance, if I wanted a Requisition to go from “Pending Order” to “Fully Ordered”, can I manually set that?

mmascitto Beginner Asked on October 31, 2019 in SuiteScript.
Add Comment
1 Answers

No. You can only change the orderstatus field to a status you can set in the ui (like changing a sales order from Pending Approval to Pending Fulfillment). To change a requisition to Fully Ordered, you need to transform it into a purchase order and order all the items (same as the ui)

Beginner Answered on October 31, 2019.

Makes sense. I’m creating a script that allows you to add the lines from a requisition to an existing PO. The trouble is I can’t establish the native relationship between PO and req. The native field used on the PO to show the originating req is called “Linked Order”, but it must be some sort of special sourced field because I can’t set it with SuiteScript. So, I created a custom column field on the PO to display the req it came from. But since it’s custom, it won’t update the status of the req, and I need the req to reflect that the items have been ordered.

on October 31, 2019.

In general, you will only be disappointed trying to do something in script that can’t be done in the ui.

on October 31, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.