Unable to set/update Status of a Vendor Return Aut...
# suitescript
a
Unable to set/update Status of a Vendor Return Authorization, it does not matter what I tried... to luck... status remains as Pending Approval. What I tried: • Set the
status
or
orderstatus
to
B
. • Set the
approvalstatus
to
B
.
e
🤔 I have used
orderstatus
in the past
ra.setValue('orderstatus','B');//Pending Receipt
Oh wait, that was a Customer Return
a
Yep, no luck with Vendor Return Authorizations so far...
c
@alien4u The role you're using has the appropriate permissions for Vendor Return Auth. Approval?
a
Administrator Role
b
you should be trying to edit the vendor return authorization in the ui to see if you can change the status
using a button does not count, these have very limited support in N/action
a
It is possible to change the Order Status on record CREATION in the UI, it disappear after creation (no longer an option). A button is available to Approve the VRA if you save it with Order Status = Pending Approval. No Actions or Macros available for:
vendorreturnauthorization
. It looks like there is an Enhancement #4759375 for this.
c
@alien4u under Setup-->Accounting Preferences-->Order Management-->Returns, is the default status set to something other than what you're trying to set? It sounds like its trying to override whatever you're setting w/ the default status since it works on create and reverts. You may have to turn that set that to empty.
a
Hi @creece thank you, not dice man, that setting does not allow you to leave it blank, it must be Pending Approval or Pending Return.
c
can you change it in after submit?
a
Unable to do it from console by loading and saving the record, so I doubt I would be able to do it by UE...