What am I doing wrong? the variable intID is very...
# suitescript
x
What am I doing wrong? the variable intID is very much valid in this case.
b
looks reasonable.
what error are you getting
x
None.
b
you need to give much more background
x
I have this logic in a map/reduce script. I ran it on one sales order and it was still in pending approval.
I also tried it in the debugger. It runs fine in the debugger, but the record is unchanged.
b
are there other user event scripts modifying the order status?
x
Nope
b
can you edit the order status in the ui
x
Yeah, I l clicked "Approve" and it went to pending fulfillment
b
clicking approve is different than editing the record and changing the status
x
Actually, the debugger just gave me something: Record has been Changed
Huh. It actually worked this time. No change to the code.
b
might want to check the system notes
x
I tried a different sales order. That particular customer I was using initially is screwy in that it's our "test" customer.
Just got it working on a third sales order now.