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

Forum Post: Script to calculate change due in Sales Order Invoice Entry

$
0
0
I wrote the following pre-validate script to update a UDF, UDF_CHANGE_DUE, when the field UDF_CASH_RECEIVED has a value entered: retVal = 0 taxable = 0 salesTax = 0 received = 0 retVal = oBusObj.GetValue("TaxableAmt$", taxable) retVal = oBusObj.GetValue("SalesTaxAmt$", salesTax) retVal = oBusObj.GetValue("UDF_CASH_RECEIVED$", received) retVal = oBusObj.SetValue("UDF_CHANGE_DUE$",received-taxable+salesTax) When I input values into the UDF_CASH_RECEIVED field, nothing populates in UDF_CHANGE_DUE

Viewing all articles
Browse latest Browse all 37030

Trending Articles



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