Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3639 Visualizzazioni

----------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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
ago 25
1060
1
apr 24
2495
0
lug 21
312
0
feb 19
3793
0
feb 19
6577