From 774859ab1a2c3e2a10c6ff1080e60e5d79813abe Mon Sep 17 00:00:00 2001 From: objecttothis Date: Fri, 18 Nov 2022 15:34:26 +0400 Subject: [PATCH] Porting over 6f8b877 --- app/Controllers/Sales.php | 5 +++++ app/Views/sales/register.php | 30 +++++++++++++++++------------- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/app/Controllers/Sales.php b/app/Controllers/Sales.php index 0bdb1191c..33d7b93f1 100644 --- a/app/Controllers/Sales.php +++ b/app/Controllers/Sales.php @@ -1612,6 +1612,11 @@ class Sales extends Secure_Controller $this->_reload(); //TODO: Hungarian notation } + public function sales_keyboard_help() + { + $this->load->view('sales/help'); + } + public function check_invoice_number(): void { $sale_id = $this->request->getPost('sale_id', FILTER_SANITIZE_NUMBER_INT); diff --git a/app/Views/sales/register.php b/app/Views/sales/register.php index 6aa84f35c..8b42e4ff1 100644 --- a/app/Views/sales/register.php +++ b/app/Views/sales/register.php @@ -444,6 +444,10 @@ if(isset($success)) title="">   + "; - break; + break; case 56: // Alt + 8 Finish Quote/Invoice without payment $("#finish_invoice_quote_button").click(); break; @@ -1029,13 +1033,13 @@ document.body.onkeyup = function(e) $("#show_keyboard_help").click(); break; } - - switch(event.keyCode) + + switch(event.keyCode) { case 27: // ESC Cancel Current Sale $("#cancel_sale_button").click(); - break; - } + break; + } }