reconciliation

MethodReturn typeDescription
handlestringThe handle of the reconciliation.
hidden?booleanReturns true if the reconciliation is hidden; false if the reconciliation is shown.
namestringThe name of the reconciliation.
numberstringReturns the virtual account number.
resultscollectionA collection with the names and values of all result tags. Using the name as a method will return the value.
starred?booleanReturns true if the reconciliation is starred; returns false if the reconciliation is unstarred.
exists?booleanReturns true if the reconciliation exists; otherwise it returns false.

Always use the .exists? method

❗️

Whenever one wishes to access a method of any reconciliation, be sure to check first if the reconciliation exists: checking on the methods .hidden?, .name, and .starred? will result in a Liquid error, seen by users, if the reconciliation does not exist on company level.

Simply accessing the name of a reconciliation, like below:

{% assign general_meeting_name = period.reconciliations.general_meeting.name %}

will result in a Liquid error, if the template is not added to the company file:

Instead, check first if the reconciliation exists before accessing data from it:

{% comment %}access General Meeting reconciliation{% endcomment %}
{% assign general_meeting = period.reconciliations.general_meeting %}

{% comment %}check if reconciliation "General Meeting" exists{% endcomment %}
{% if general_meeting.exists? %}

  {% comment %}create name{% endcomment %}
  {% assign general_meeting_name = general_meeting.name %}

{% endif %}

More info can be found in this case on our Community.


Current reconciliation

You can easily get information about the current reconciliation you are working on, using some method on the 'current_reconciliation' drop.

Handle : {{ current_reconciliation.handle }}
Name : {{ current_reconciliation.name }}
Starred?: {{ current_reconciliation.starred? }}
Virtual account number: {{ current_reconciliation.number }}