diff --git a/lang/en_us.php b/lang/en_us.php index c24a807..c5473e6 100644 --- a/lang/en_us.php +++ b/lang/en_us.php @@ -138,4 +138,6 @@ define("STRINGS", [ "card x saved" => "Gift card #{arg} updated.", "open drawer" => "Open Drawer", "no items" => "No items in transaction.", + "delete transaction" => "Delete transaction", + "transaction discount" => "Transaction discount" ]); diff --git a/pages/pos.php b/pages/pos.php index cdb8272..a7a2055 100644 --- a/pages/pos.php +++ b/pages/pos.php @@ -269,6 +269,10 @@ if (isset($_GET['switch']) || !isset($_SESSION['register']) || !$registeropen) { +
+ + +
diff --git a/static/js/pos.js b/static/js/pos.js index baf91e9..e48a3f7 100644 --- a/static/js/pos.js +++ b/static/js/pos.js @@ -56,6 +56,12 @@ function recalculate() { $("#receiptchange").text(change.toFixed(2)); } +$("#deletetxbtn").click(function () { + bsalert("Confirm", "Really delete transaction?", "Yes", "No", function () { + window.location.href = "app.php?page=pos"; + }); +}); + // Make sure the session doesn't expire setInterval(function () { $.get("action.php", {action: "session_keepalive"});