Niet-opgevraagd kapitaal

Hi,

We’ve been using a template for the ‘niet-opgevraagd kapitaal’ since last year. However, since a couple of weeks we are getting a liquid error. Not sure what’s wrong with it… could you please assist? The error is ‘Called .custom on an undefined value: detail.custom.aantal’.

  • {% t= “Aandeelhouder” fr:“Actionnaire” en:“Shareholder” %}
  • {% t= “Geplaatst kapitaal” fr:“Capital souscrit” en:“Share capital” %}
  • {% t= “Volstort kapitaal” fr:“Capital libéré” en:“Paid-up capital” %}
  • {% t= “Niet-opgevraagd kapitaal” fr:“Capital non appelé” en:“Uncalled capital” %}
  • {% t= “Aantal aandelen” fr:“Nombre d’actions” en:“Number of shares” %}
  • | {% t “Aandeelhouder” %} | {% t “Geplaatst kapitaal” %} | {% t “Volstort kapitaal” %} | {% t “Niet-opgevraagd kapitaal” %} | {% t “Aantal aandelen” %}
  • |-------|-------:-----------:|-------15%-----:|-----15%-------:|-----15%-----:+{% fori detail in current_account. custom. details %}
  • |{% input detail.custom.aandeelhouder %} |{% $1+input detail.custom.geplaatst as:currency %}|{% $2+input detail.custom.volstort as:currency %}|{% =$0+ detail.custom.geplaatst-detail.custom.volstort as:currency %}|{% input detail.custom.aantal aandelen %}{% endfori %}
  • | | {{ $1 | currency }} | {{ $2 | currency }} | {{ $0 | currency }}{% unexplained $0-current_account.value %} | {% input detail.custom.aantal aandelen %}

Many thanks.
Kind regards,

Tim

Hi Tim,

I noticed two problems with your last input variable detail.custom.aantal aandelen:

  1. the detail refers to your collection. However this code is not within your fori loop. Use custom.some.thing syntax instead

  2. there is a space between aantal and aandelen. Note that variables can never contain a space.

Kind regards,

Michiel

Thanks Michiel, works now!

Kind regards,

Tim