fix : second display layout

- show item and QR seperately
- show total amount and receipt no on the ui
This commit is contained in:
aungthetkhaing
2025-05-23 14:21:54 +06:30
parent a12cd193c4
commit 40dc0950f9
4 changed files with 220 additions and 145 deletions

View File

@@ -244,7 +244,7 @@ class Foodcourt::QrpayController < BaseFoodcourtController
# size: 240 # Approximate size of the image in pixels (e.g., 240x240)
# ).to_s
ActionCable.server.broadcast('second_display_view_channel', { data: @qr_string, qr_svg: @qr_svg })
ActionCable.server.broadcast('second_display_view_channel', { data: @qr_string, qr_svg: @qr_svg, grand_total: @sale_data.grand_total, invoice_no: @sale_data.receipt_no })
end
end
end