carboneio / carbone

Fast and simple report generator, from JSON to pdf, xslx, docx, odt...
https://carbone.io
Other
1.3k stars 190 forks source link

[Bug Report]: add() formatter not working with arrays. Issue replicated with excel template and data provided by Carbone #165

Open menbatisiunissart opened 2 years ago

menbatisiunissart commented 2 years ago

Environment Carbone Version: 3.2.3 (also tested with 2.1.1 with similar results) Node Version: v16.13.0 Desktop OS: Mac Os 11.6.7 Big Sur

Expected Behaviour Excel "dynamic paramters" example provided by carbone.id: https://carbone.io/examples/dynamic-parameters/Archive.zip

Actual Behaviour Content rendered as NaN

Steps to reproduce Steps to reproduce the bug:

  1. Go to https://carbone.io/examples/dynamic-parameters/Archive.zip
  2. Run the template with the provided JSON data
  3. See error

Screenshots Screenshot 2022-06-27 at 12 17 07

Also managed to replicate the same issue in Carbone studio: Screenshot 2022-06-27 at 12 19 15

Other comments