# \#use\_case

**URL:** https://community.silverfin.com/tag/use-case/413.md

[Latest](https://community.silverfin.com/latest.md) · [Categories](https://community.silverfin.com/categories.md) · [Tags](https://community.silverfin.com/tags.md)

---

## [CASE: use persisted to hide parts of a loop](https://community.silverfin.com/t/case-use-persisted-to-hide-parts-of-a-loop/1413)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [February 28, 2019, 8:48am UTC](https://community.silverfin.com/t/case-use-persisted-to-hide-parts-of-a-loop/1413 "2019-02-28T08:48:32Z")

</div>

There might be some cases into where your fori-loop creates a whole range of inputs that need to be done, like below: If you are like me, you’ll find the extra loop with all of its fields a little bit too much. I wan…

---

## [CASE: index accounts drop on original account number](https://community.silverfin.com/t/case-index-accounts-drop-on-original-account-number/1360)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [January 22, 2019, 2:01pm UTC](https://community.silverfin.com/t/case-index-accounts-drop-on-original-account-number/1360 "2019-01-22T14:01:32Z")

</div>

The option is now added to index the accounts drop by the original account number (if you use a mapping, where you have the chart of accounts of your customer and your own chart of accounts). Before, you could easily ac…

---

## [CASE: group custom collection](https://community.silverfin.com/t/case-group-custom-collection/1361)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [January 22, 2019, 2:36pm UTC](https://community.silverfin.com/t/case-group-custom-collection/1361 "2019-01-22T14:36:07Z")

</div>

There’s an extra filter in town group\_by which will let you group a custom collection on a certain objects, which will let you display other info related to that grouping with lesser code! Take this for example: Abo…

---

## [CASE: create VAT letter to inform your customer](https://community.silverfin.com/t/case-create-vat-letter-to-inform-your-customer/1294)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [December 2, 2018, 12:39pm UTC](https://community.silverfin.com/t/case-create-vat-letter-to-inform-your-customer/1294 "2018-12-02T12:39:29Z")

</div>

We can build a VAT letter as a reconciliation template, as below: The reason why we build this as a reconciliation template, is so we can inform our customer by adding a note/todo and mentioning our customer in it so…

---

## [CASE: persistent\_id](https://community.silverfin.com/t/case-persistent-id/2328)

<div class="topic-metadata">

**Author:** [@t0gden](https://community.silverfin.com/u/t0gden)\
**Replies:** 0\
**Last updated:** [August 8, 2022, 3:32pm UTC](https://community.silverfin.com/t/case-persistent-id/2328 "2022-08-08T15:32:39Z")

</div>

Hi there! Today we will take a look at the difference between person.persistent\_id and person.id. Both of these methods are useful when we want to access information about a person but there is an important difference. …

---

## [CASE: multiline\_table](https://community.silverfin.com/t/case-multiline-table/2312)

<div class="topic-metadata">

**Author:** [@t0gden](https://community.silverfin.com/u/t0gden)\
**Replies:** 0\
**Last updated:** [June 30, 2022, 1:53pm UTC](https://community.silverfin.com/t/case-multiline-table/2312 "2022-06-30T13:53:59Z")

</div>

multiline\_table is a string filter that replaces any new line characters \\n with an HTML line break tag \<br /\>. This ensures that text is displayed on new lines as intended. Be sure to use the multiline\_table filter whe…

---

## [CASE: create result tag in each loop](https://community.silverfin.com/t/case-create-result-tag-in-each-loop/1200)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 2\
**Last updated:** [June 20, 2022, 12:20pm UTC](https://community.silverfin.com/t/case-create-result-tag-in-each-loop/1200 "2022-06-20T12:20:38Z")

</div>

Let’s say we import certain data from a client, and we want to display each value of a certain column in a report template for instance: I’ll need to create a result-tag for each loop where data has been inputted. We…

---

## [CASE: add extra check to reconcile template](https://community.silverfin.com/t/case-add-extra-check-to-reconcile-template/1415)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [March 1, 2019, 11:14am UTC](https://community.silverfin.com/t/case-add-extra-check-to-reconcile-template/1415 "2019-03-01T11:14:19Z")

</div>

It happens that some templates are reconciled as soon as data is filled in, no matter what is filled in. For instance, a template that features all directors with some additional info: But I’d rather have someone ch…

---

## [CASE: use rollforward for files](https://community.silverfin.com/t/case-use-rollforward-for-files/1410)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [February 28, 2019, 8:08am UTC](https://community.silverfin.com/t/case-use-rollforward-for-files/1410 "2019-02-28T08:08:08Z")

</div>

When you copy details from one period to another, and attachments were added in the original period, then these attachments were copied as well to the new period. In most cases, the attachments of the old period are irr…

---

## [CASE: use assign and default on one line](https://community.silverfin.com/t/case-use-assign-and-default-on-one-line/1409)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [February 28, 2019, 8:02am UTC](https://community.silverfin.com/t/case-use-assign-and-default-on-one-line/1409 "2019-02-28T08:02:03Z")

</div>

As you are well aware, when using default (as mentioned here ), you still needed to create an additional line of code to assign it to a local variable. For instance: {% input custom.vat.nbr default:company.vat\_identifi…

---

## [CASE: access the number of a bookyear](https://community.silverfin.com/t/case-access-the-number-of-a-bookyear/1359)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [January 22, 2019, 12:42pm UTC](https://community.silverfin.com/t/case-access-the-number-of-a-bookyear/1359 "2019-01-22T12:42:12Z")

</div>

From now on you can access the number of a bookyear by this code: {{ period.bookyear\_index }} For Belgium tax calculations, this can be used as we sometimes need to know if the bookyear is part of the first 3 years o…

---

## [CASE: display the current title of a block in an export](https://community.silverfin.com/t/case-display-the-current-title-of-a-block-in-an-export/1358)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [January 22, 2019, 12:25pm UTC](https://community.silverfin.com/t/case-display-the-current-title-of-a-block-in-an-export/1358 "2019-01-22T12:25:32Z")

</div>

There’s the option to access the title of an export block (in which you select accounts, reports, reconciliations, …) by this code: {{ export.current\_title }} This was already accessible in the detail text of an expo…

---

## [CASE: check if Belgian VAT number is valid](https://community.silverfin.com/t/case-check-if-belgian-vat-number-is-valid/1328)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [December 20, 2018, 4:17pm UTC](https://community.silverfin.com/t/case-check-if-belgian-vat-number-is-valid/1328 "2018-12-20T16:17:23Z")

</div>

If you want to check if a Belgian VAT number is valid or not (check modulo 97), you can see how you can configure just that in below case: {% comment %}remove any string values that could be present{% endcomment %} {% a…

---

## [CASE: create rental income journal overview](https://community.silverfin.com/t/case-create-rental-income-journal-overview/1297)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [December 3, 2018, 9:37am UTC](https://community.silverfin.com/t/case-create-rental-income-journal-overview/1297 "2018-12-03T09:37:27Z")

</div>

This is especially for Belgium important as it would be needed to give an overview of all received rental income if your customer has this kind of income. It can look like this as a reconciliation template: Below is …

---

## [CASE: calculate provision, depending on fiscal year](https://community.silverfin.com/t/case-calculate-provision-depending-on-fiscal-year/1296)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [December 2, 2018, 1:00pm UTC](https://community.silverfin.com/t/case-calculate-provision-depending-on-fiscal-year/1296 "2018-12-02T13:00:11Z")

</div>

In this case, we show how an account template can be created, that calculates the provision. Depending on which fiscal year it is, it will take into account a certain percentage: Below is the source code; additional …

---

## [CASE: create engagement letter with option for e-signing](https://community.silverfin.com/t/case-create-engagement-letter-with-option-for-e-signing/1291)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [December 1, 2018, 2:06pm UTC](https://community.silverfin.com/t/case-create-engagement-letter-with-option-for-e-signing/1291 "2018-12-01T14:06:58Z")

</div>

Below code features an example of an agreement letter that can be added as a text template; in the code there are comment-tags used for info on how the code works, and why we choose certain code. The output is something…

---

## [CASE: how to create a custom text template](https://community.silverfin.com/t/case-how-to-create-a-custom-text-template/1292)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [December 1, 2018, 2:16pm UTC](https://community.silverfin.com/t/case-how-to-create-a-custom-text-template/1292 "2018-12-01T14:16:47Z")

</div>

If you wish to create a custom text template, you can easily do so, starting from the Documents section on company level: Just click on New text and this will actually let you create a text template on company level. …

---

## [CASE: reference templates across each other (cross references)](https://community.silverfin.com/t/case-reference-templates-across-each-other-cross-references/1282)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [November 23, 2018, 2:30pm UTC](https://community.silverfin.com/t/case-reference-templates-across-each-other-cross-references/1282 "2018-11-23T14:30:41Z")

</div>

Let’s say we overview done calculations in recon template A, where the calculations are done in another recon template B. Then it’s a good idea to reference those templates to each other: in recon A we’ll implement a l…

---

## [CASE: add extra column to the Silverfin standard template](https://community.silverfin.com/t/case-add-extra-column-to-the-silverfin-standard-template/1275)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [November 9, 2018, 1:00pm UTC](https://community.silverfin.com/t/case-add-extra-column-to-the-silverfin-standard-template/1275 "2018-11-09T13:00:10Z")

</div>

There’s some feedback from users who want to change the view of the Silverfin standard template, which looks like this: Perhaps you want to pimp this standard template a little bit with additional columns? Here’s th…

---

## [CASE: group details of current and previous period / year](https://community.silverfin.com/t/case-group-details-of-current-and-previous-period-year/1229)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [October 2, 2018, 11:48am UTC](https://community.silverfin.com/t/case-group-details-of-current-and-previous-period-year/1229 "2018-10-02T11:48:55Z")

</div>

Let’s say we want to build further on this case: but we’ll expand our overview of details on details of the current year AND the previous year (if it exists): How you can access details from a previous period, is e…

---

## [CASE rollforward: copy amounts into other objects from one year to the next year](https://community.silverfin.com/t/case-rollforward-copy-amounts-into-other-objects-from-one-year-to-the-next-year/1158)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [August 28, 2018, 9:03am UTC](https://community.silverfin.com/t/case-rollforward-copy-amounts-into-other-objects-from-one-year-to-the-next-year/1158 "2018-08-28T09:03:53Z")

</div>

Let’s say we manually put in some movements regarding financial investments in year 2016: It would be great then, when copying these details from 2016 to 2017, the amounts in column End value would be transferred to …

---

## [CASE: Retrieve comments from a reconciliation/account template](https://community.silverfin.com/t/case-retrieve-comments-from-a-reconciliation-account-template/1254)

<div class="topic-metadata">

**Author:** [@borjaGonzalez](https://community.silverfin.com/u/borjaGonzalez)\
**Replies:** 0\
**Last updated:** [October 24, 2018, 9:29am UTC](https://community.silverfin.com/t/case-retrieve-comments-from-a-reconciliation-account-template/1254 "2018-10-24T09:29:49Z")

</div>

Let’s say we want to create a document or reconciliation template that shows the notes/comments of the different account/reconciliation templates we have in place. In order to accomplish this, we can place a footer in a…

---

## [CASE: scenarios to use infotags, warningtags and/or indicators](https://community.silverfin.com/t/case-scenarios-to-use-infotags-warningtags-and-or-indicators/1251)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [October 19, 2018, 12:21pm UTC](https://community.silverfin.com/t/case-scenarios-to-use-infotags-warningtags-and-or-indicators/1251 "2018-10-19T12:21:12Z")

</div>

As we’ve seen so far, we have different ways telling an user if there’s something wrong and/or an extra action from the user needs to be done through: indicators, as seen here: CASE: indicate template if reconciled o…

---

## [CASE: create overview of accounts with the account collection (hashtag)](https://community.silverfin.com/t/case-create-overview-of-accounts-with-the-account-collection-hashtag/1245)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [October 17, 2018, 8:36am UTC](https://community.silverfin.com/t/case-create-overview-of-accounts-with-the-account-collection-hashtag/1245 "2018-10-17T08:36:39Z")

</div>

In this case, we will demonstrate how you, as an user, are able to select a certain range of accounts and display them with certain values from the accounts-drop (the accounts-drop stores information like debet\_value, op…

---

## [CASE: select different sections of text and overview them](https://community.silverfin.com/t/case-select-different-sections-of-text-and-overview-them/1240)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [October 12, 2018, 11:29am UTC](https://community.silverfin.com/t/case-select-different-sections-of-text-and-overview-them/1240 "2018-10-12T11:29:12Z")

</div>

Let’s say I have different reconciliation templates where f.i. a bunch of footnotes are given; these footnotes is some standard text with info in it (info that I have in my client file and can call upon, and other varia…

---

## [CASE: display account details even when the account value is zero](https://community.silverfin.com/t/case-display-account-details-even-when-the-account-value-is-zero/1243)

<div class="topic-metadata">

**Author:** [@borjaGonzalez](https://community.silverfin.com/u/borjaGonzalez)\
**Replies:** 0\
**Last updated:** [October 16, 2018, 1:57pm UTC](https://community.silverfin.com/t/case-display-account-details-even-when-the-account-value-is-zero/1243 "2018-10-16T13:57:47Z")

</div>

Let’s say we want to populate the name, number and value of a particular set of accounts as in the example below: {% stripnewlines %} |{% input custom.account.selection as:account\_collection range:'1' %} {% assign my\_ac…

---

## [CASE: indicate template if reconciled or not](https://community.silverfin.com/t/case-indicate-template-if-reconciled-or-not/1242)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [October 15, 2018, 3:07pm UTC](https://community.silverfin.com/t/case-indicate-template-if-reconciled-or-not/1242 "2018-10-15T15:07:29Z")

</div>

When building a template like this, we would like to visually guide the user on to what reconcile specifically: Code used in above example: {% ic %} {::infotext} {% t "Reconcile all income accounts that impacted the…

---

## [CASE creating export file: export all used accounts to XLS](https://community.silverfin.com/t/case-creating-export-file-export-all-used-accounts-to-xls/1160)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [August 28, 2018, 3:55pm UTC](https://community.silverfin.com/t/case-creating-export-file-export-all-used-accounts-to-xls/1160 "2018-08-28T15:55:12Z")

</div>

If we want to export all used accounts and their mapped info (name and number), even if there are no bookings on them, to Excel f.i., we can create an export-file on firm level. This acts as a template, where you can acc…

---

## [CASE: check if an attachment (or attachments) are added](https://community.silverfin.com/t/case-check-if-an-attachment-or-attachments-are-added/1225)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [October 1, 2018, 12:34pm UTC](https://community.silverfin.com/t/case-check-if-an-attachment-or-attachments-are-added/1225 "2018-10-01T12:34:12Z")

</div>

If you want to check whether or not documents (attachments) have been added to a database variable, you can by using the document method: {% if custom.attachements.things.document == blank %} {% ic %} {::infotext …

---

## [CASE: print large numbers into human language](https://community.silverfin.com/t/case-print-large-numbers-into-human-language/1201)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [September 18, 2018, 2:51pm UTC](https://community.silverfin.com/t/case-print-large-numbers-into-human-language/1201 "2018-09-18T14:51:45Z")

</div>

We might have a large number to display in our legal reports f.i.: We might want to “humanise” this a bit and express this large number into something like 5 Billion. With the number\_to\_human you can, like this: {{ …

[Next page](https://community.silverfin.com/tag/use-case/413.md?match_all_tags=true&page=1&tags%5B%5D=use_case)
