diff --git a/app/controllers/origami/sx queries.txt b/app/controllers/origami/sx queries.txt new file mode 100644 index 00000000..efae4797 --- /dev/null +++ b/app/controllers/origami/sx queries.txt @@ -0,0 +1,14 @@ +truncate bookings; +truncate booking_orders; +truncate orders; +truncate order_items; +truncate assigned_order_items; +truncate sale_orders; +truncate sales; +truncate sale_items; +truncate sale_audits; +truncate sale_taxes; +truncate sale_payments; +truncate shift_sales; +update dining_facilities set status='available'; +update cashier_terminals set is_currently_login=0; diff --git a/app/pdf/receipt_bill_pdf.rb b/app/pdf/receipt_bill_pdf.rb index 9a1b64e5..451c055b 100755 --- a/app/pdf/receipt_bill_pdf.rb +++ b/app/pdf/receipt_bill_pdf.rb @@ -105,7 +105,7 @@ class ReceiptBillPdf < Prawn::Document end if kbz_pay_status - pay_by_kbzpay(printed_status, qr_code) + kbzpay_qr_generator(printed_status, qr_code) end footer(printed_status) @@ -685,14 +685,16 @@ class ReceiptBillPdf < Prawn::Document move_down line_move end - def pay_by_kbzpay(status, qr_code) + def kbzpay_qr_generator(status, qr_code) if status == 'Frt' move_down line_move move_down line_move text "Scan to pay with KBZ Pay", :size => self.header_font_size, :align => :center move_down line_move print_qr_code(qr_code, pos: [39, cursor], extent: 161, stroke: false, dot: 1000) - # stroke_horizontal_rule + move_down line_move + text "This QR code will be expired after 20 minutes.", :size => self.item_font_size, :align => :center + move_down line_move move_down line_move end end diff --git a/dump.rdb b/dump.rdb index 81aade48..715250ee 100644 Binary files a/dump.rdb and b/dump.rdb differ