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;
+ }
}