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

Forum Post: Update a Invoice Header UDF with info from SO_InvoicePayment

$
0
0
I have a client on Sage 2013 that would like to have a udf_Payment field to calculate change during Invoice data entry and that works. What they would like is if the Payment Type is Credit Card, after Credit card information is entered and submitted, to put the amount in the udfPayment field. I tried a script based on the Post validate of the Payment type and as soon as I select a customer in Invoice data entry the script runs and it seems to run multiple times, yet it does not update my UDF field in the Invoice Header.  It is displaying the amount correctly then as 0. CPay = 0 retval = oBusObj.Getvalue ("TransactionAmt", CPay) msgbox CPay retVal = oBusObj.SetValue("UDF_PAYMENT_RECEIVED",CPay) Thank you in advance.

Viewing all articles
Browse latest Browse all 37907

Latest Images

Trending Articles



Latest Images

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