Changes

Jump to: navigation, search

Transaction Variables

755 bytes added, 21:57, 20 August 2009
no edit summary
<tr><!--~typename~--><td>$1041842$</td><td>$1041843$</td><td>$1041844$</td><td>$1041845$</td></tr>
#]
 
 
==Performing Calculations==
 
To obtain a Sum (for example) of the values in a [[Custom Field]] for all transactions associated with a Company/Contact using [[sscalculation]]:
<pre>
<!--@sscalculation( [#(?object=transaction;)$add this$+#]0)-->
</pre>
 
 
* '''Important:''' There <u>must</u> be a space prior to the opening square bracket.
* Also: don't forget the zero at the end of the statement. For example, if there are transactions with values of 10, 15 and 20 the statement between the square brackets would be translated as follows:
::''[#(?object=transaction;)$add this$+#]'' &nbsp;&nbsp;&nbsp; becomes &nbsp;&nbsp;&nbsp; ''10+15+20+''
so the 0 at the end ensures that the statement evaluated doesn't end with a plus sign (which will fail).
 
==See Also==
0
edits

Navigation menu