Silverfin

The Silverfin Developer Hub

Welcome to the Silverfin developer hub. You'll find comprehensive guides and documentation to help you start working with Silverfin as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started

Abs

Outputs a number into an absolute value.

{{ -23 | abs }}
Output
23

Ceil

Allows to round the input UP. For example, the nearest whole number of 1.2 is 1, however, if you use ceil:0 filter, it will round UP the value and the result will be 2.

🚧

Ceil filter needs to be used with precision for it to work.

Depending on the number used with ceil, the value can be rounded UP in a different way, for example:
ceil:0 is to the nearest whole number
ceil:1 is to the nearest 0.1
ceil:2 is to the nearest 0.01
ceil:-1 is to the nearest 10

Ceil 0: {{ 1.2222 |ceil:0 }}

Ceil 1: {{ 1.2222 |ceil:1 }}

Ceil 2: {{ 1.2222 |ceil:2 }}

Ceil -1: {{ 1.2222 |ceil:-1 }}
Output

Currency

This will output a value into the currency format, depending on the chosen language in Silverfin. This is a filter made by Silverfin.

🚧

"#61" will give the value of all 61-accounts for the selected period.

{{ #61 | currency }}
Output
121,590.31

Percentage

This will output a value as a percentage.

📘

The formula (#60+#70)/#70 is the calculation of gross margin, where the 60-accounts are in plus and the 70-accounts in minus.

{{ (#60+#70)/#70 | percentage }}
Output
99.89%

Currency_dc

This will output the value of [linkto account drop]accounts[endlinkto] into debet or credit; this setting has to be activated in the advanced settings of Silverfin in order to be used. This is a filter made by Silverfin.

{{ #61 | currency_dc }}
Output
121,590.31 D

Number_to_human

This will output the value of [linkto account drop]accounts[endlinkto] into a combination of a rounded number and English word for that rounded number, if it's more than 1 thousand. This is a filter made by Silverfin.

{{ #6 | number_to_human }}
Output
287 Thousand

Number_to_currency

This will output a string to the currency format, depending on the language setting of Silverfin. This filter is made by Silverfin.

{{ "123456789.99" | number_to_currency }}
Output
123.456.789,99

Round

This will output a value to a rounded value, depending on a number that can be given as an argument. As a default, you will see two decimals after the coma.

Example 1 with two decimals: {{ #6 | round }}

Example 2 with zero decimals: {{ #6 | round:0 }}
Output

Example 1 with two decimals: 313734.14

Example 2 with zero decimals: 313734.0

Modulo

Divides an output by a number and returns the remainder.

{{ 9 | modulo:2 }}
Output
1

Updated 5 months ago

Number


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.