Dovico.TrackITAPI.CReceivable.CalculateTotal(System.String,Dovico.TrackITAPI.CStateInfo)
Function Overview:
This method calculates the total for a receivable specified by the ID of the receivable in the format getinfo.xsd
Parameter List:
sXml - string - xml containing ID to get receivable total for in the format getinfo.xsd
siState - CStateInfo - State information needed to process the transaction
Returns
The amount of the receivable wrapped in a RESULTS tag.
Example:
// initialize a string of xml containing the ID of the receivable to retrieve the total for
string sXml = "<GetInfo:ID xmlns:GetInfo=\"http://www.dovico.com/schemas/getinfo.xsd\">1129</GetInfo:ID>";
// call the method
string sReceivableTotal = wsapi.MethodInvoke("ReceivableCalculateTotal", sXml, stToken);