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

Forum Post: Script not working..

$
0
0
Hi All,    New to scripting and trying to do what I think is a pretty simple one but it doesn't seem to do anything. I have setup a line UDF -Retention Amount.    There is a Misc Code setup - RETENTION.  What I am trying to do is write the extension amount to the Line UDF (which will then be totaled to the header and written out from there) I have set to post-validate on the extension amount.  Here is the script: numExtention = 0 numRetention = 0 retVal = oBusObj.GetValue("ItemCode$",item) retVal = oBusObj.GetValue("ExtensionAmt",Extention) if item = "\RETENTION" then retVal = oBusObj.SetValue("UDF_RETENTION_AMT",Extention) else retVal = oBusObj.SetValue("UDF_RETENTION_AMT",0) end if

Viewing all articles
Browse latest Browse all 36993

Trending Articles



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