Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2861 Näkymät

----------SOLVED----------

Hello!

I want to put a base64 QR code in my POS Receipt with some of the order information.

I already got to inherit and edit the POS Receipt.

But I can't send the QR code to the Receipt with "export_for_printing()" because I need to make the function async in order to generate the QR code.

Everytime I try to make it async, I get "TypeError: ctx.receipt.company is undefined", because maybe another function which is not async is trying to get the data.

Do you have any idea that could help me?

Thanks!

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
elok. 25
137
1
huhtik. 24
2009
0
heinäk. 21
312
0
helmik. 19
3431
0
helmik. 19
5974