HI All, I have a customer were about 95% of their orders are from one customer. I wrote a script to set the customer number and FOB when the Sales Order is created. If worked ok but they changed the terms on the customer and now when the order is created, it has the wrong terms code. I tried adding the terms code to the script but it did not change the behavior. The script if very simple, it runs on initialization. I put the terms code last, I am wondering if moving it to before the FOB may help (I am waiting to get access to test this).
'Set Customer No
'Intitalization
sDiv = "01" : sCust = "0001101": sFOB = "HUNTINGTON PARK": sTerms = "46"
retVal = oBusObj.SetValue("ARDivisionNo$", sDiv)
retVal = oBusObj.SetValue("CustomerNo$", sCust)
retVal = oBusObj.SetValue("FOB$", sFOB)
retVal = oBusObj.SetValue("TermsCode$", sTerms)
------------------------------
Bob Osborn
Consultant
ACI Consulting
------------------------------