Changes

Jump to: navigation, search

Transaction Variables

31 bytes added, 13:12, 21 August 2009
Performing Calculations
==Performing Calculations==
You can obtain <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]]:
<pre>
<!--@sscalculation( [#(?object=transaction;)$add this$+#]0)-->
so the 0 at the end ensures that the statement evaluated doesn't end with a plus sign (which will fail).
If using a [[Web Page View]] or [[Custom Field Type: Read Only – System Variables|Read Only - System Variables]] field you should use the syntax above.
 If you are using want to store the value on the Company/Contact record you should use a [[Calculated Value]] field use the following:
( [#(?object=transaction;)$add this$+#]0)
* '''NOTE''': The [[Calculated Value]] will only be updated when the company Company/Contact record is saved, not . '''Not''' whenever a [[Transaction]] is created.
==See Also==
0
edits

Navigation menu