Changes

Jump to: navigation, search

Transaction Variables

31 bytes added, 13:14, 21 August 2009
Performing Calculations
==Performing Calculations==
You can <u>display</u> a Sum (for example) of the values in a [[Custom Field]] for all transactions associated with a Company/Contact using [[sscalculation]] within either a [[Web Page View]] or [[Custom Field Type: Read Only – System Variables|Read Only - System Variables]]field:
<pre>
<!--@sscalculation( [#(?object=transaction;)$add this$+#]0)-->
* '''Important:''' There <u>must</u> be a space prior to the opening square bracket.
* Also: when summing values don't forget the zero at after the end of the statementclosing square bracket. 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).
0
edits

Navigation menu