Adjustment button
The adjustment button tag is used to make an adjustment
By using adjustment button tag you can create a button that would automatically make an adjustment, filled with values taken from Liquid logic.
{% adjustmentbutton text:"create new adjustment" category:"internal" %}
{% adjustmenttransaction account_number:"100000" description:"Some description" value:1000.23 %}
{% adjustmenttransaction account_number:"120000" description:"Some other description" value:-1000.23 %}
{% endadjustmentbutton %}
Purpose
Purpose attribute allows creating an adjustment that belongs to a unique purpose. For more information on the application of the purpose attribute, please have a look at the case on the Silverfin Developers Community.
{% comment %}create unique "purpose" ID to use in our purpose attribute{% endcomment %}
{% assign selected_accounts = custom.accounts.counter | prepend:"selected_accounts_for:" %}
{% adjustmentbutton text:adj_txt purpose:selected_accounts %}
Analytical dimension and consolidation file
The analytical_dimension_1_id
attribute allows you to create an adjustment that specifies an analytical dimension or consolidation file. More information about the different analytical types can be found here.
By using the analytical_dimension_1_id
attribute, you can define a specific analytical dimension or consolidation file for the adjustment you are creating. In your adjustment button tag, simply add the ID of your analytical dimension or consolidation file next to the attribute:
analytical_dimension_1_id: company.analytical_type_1_codes[0].code
The company.analytical_type_1_codes[0].code
drop contains the dimension.code
of your analytical dimension or consolidation file.
{% adjustmentbutton text:"create new adjustment" category:"internal" %}
{% adjustmenttransaction account_number:"100000" description:"Some description" value:1000.23 analytical_dimension_1_id:company.analytical_type_1_codes[0].code %}
{% adjustmenttransaction account_number:"120000" description:"Some other description" value:-1000.23 analytical_dimension_1_id:company.analytical_type_1_codes[1].code %}
{% endadjustmentbutton %}
Updated 9 days ago