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
↧