BOI During Daily Sales Reports & Updates

SOLVED

I have a simple script that updates a UDF in AR_Customer. The script is a Table Pre-Write event on AR_Customer.
It works perfectly when editing a customer record in Customer Maintenance.
It does not work though when the Daily Sales Reports & Updates are run. That process does edit the AR_Customer records, but the script simply won't run.

Why would it run fine in one scenario, but not the other?

If anyone has ideas, it would be much appreciated!


Here is my script:
r = 0
PriceLevel = ""
If oSession.UserCode <> "ORO" Then
r = oBusObj.GetValue("PriceLevel$",PriceLevel)
If PriceLevel = "1" or PriceLevel = "4" Then
r = oBusObj.SetValue("UDF_SendToOro$","Y")
End If
End If