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

Forum Post: RMA Data Entry

$
0
0
Hi I am writing a script on Post_read of RA_ReturnHeader. If user selects existing RMA, then I do not want to include any other Invoice besides one already existing. For that, I want to grab Invoice No. from the first detail line and set in storage field. Here is my part of the script:  retval = oBusObj.GetValue("RMANo$",rma)             'This captures RMANo from header Set oLines = oSession.AsObject(oSession.GetObject("RA_ReturnDetail_bus")) retval = oSession.AsObject(oSession.UI).MessageBox("", "set oLines " + rma)     ' This tells me that correct RMA no is grabbed retval = oLines.SetKeyValue("RMANo$",rma) retval = oLines.SetKeyValue("LineKey$","000001") retval = oLines.SetKey()   retval = oLines.GetValue("InvoiceNo$",invno)                        ' this does not grab Invoice from first detail line? retval = oSession.AsObject(oSession.UI).MessageBox("", "Invoice No " + invno) retVal = oScript.SetStorageVar("StartInvNo$", invno)   If user starts a new RMA, then other script on RA_ReturnDetail grabs the first Invoice No entered and sets in storage variable. Next line entry will check against the stored Inv# and if different will give error message "Cannot use another Invoice No".  This part works well for new RMA.   Any help will be appreciated  

Viewing all articles
Browse latest Browse all 37217

Trending Articles



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