See an example here
https://playground.jsreport.net/w/anon/x1IyJsyM

In handlebars, when you want to use a helper to calculate the attribute of another helper, you use () subexpressions.
https://handlebarsjs.com/guide/expressions.html#subexpressions

{{docxImage src=(barcodeHerper "qrcode" data.invoiceNumber)}}