Hi
@Rodion Assuming that you have in your invoice form a date field where the invoice date is entered and whose id is "trandate", you create a transaction body field in which you retrieve the date using a formula SQL (see figure 1)
Once rendered in the HTML form of the invoice, you therefore retrieve the content of your custom field with the formula
${record.custbodycurrentyear}