Quantcast
Channel: Sage 100
Viewing all articles
Browse latest Browse all 36990

Forum Post: How to force the customer number when entering a new sales order

$
0
0
Hi Forum, How can i update the customer number on a new sales order.i am able to get the customer number but it doesn't write it. Here is the script that i have. tmpValue = "" tmpSalesOrderNo = "" retVal = oBusObj.GetValue("CustomerNo$",tmpValue) retVal = oBusobj.GetValue("SalesOrderNo$",tmpSalesOrderNo) IF tmpValue <> "" THEN retVal = oBusObj.SetValue("CustomerNo$",tmpValue) msgbox(tmpValue &" Customer") Set oSalesSvc = oSession.AsObject(oSession.GetObject("SO_SalesOrder_bus")) retVal = oSalesSvc.ReadRec(tmpSalesOrderNo) msgbox (retVal & " Read Order: " & tmpSalesOrderNo) retVal = oBusObj.SetValue("CustomerNo$",tmpValue) retVal = oBusObj.Write() msgbox (retVal & " Write Record") End If Any suggestions?.. Regards, Manuel Roman

Viewing all articles
Browse latest Browse all 36990

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>