Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2703 Lượt xem

----------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!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 24
1914
0
thg 7 21
312
0
thg 2 19
3372
0
thg 2 19
5892
2
thg 4 16
3474