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.
↧