From dd6a5338d07cfa9e8d560952732a223d4e846109 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Tue, 17 Mar 2026 13:13:06 +0000 Subject: [PATCH] adding paging to accounting --- debug.log | 1 + index.php | 2170 ++++++++--------------------------------------- login_debug.log | 1 + post_debug.log | 2 + 4 files changed, 377 insertions(+), 1797 deletions(-) diff --git a/debug.log b/debug.log index 71eaccd..07e86a0 100644 --- a/debug.log +++ b/debug.log @@ -5,3 +5,4 @@ 2026-03-01 18:24:40 - Items case hit 2026-03-17 09:58:59 - Items case hit 2026-03-17 10:04:31 - Items case hit +2026-03-17 10:12:20 - Items case hit diff --git a/index.php b/index.php index cf76357..c723646 100644 --- a/index.php +++ b/index.php @@ -35,17 +35,6 @@ if ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') || (isset($_SERVER[ } session_start(); -if (isset($_GET['action']) && $_GET['action'] === 'switch_outlet') { - $target = (int)$_GET['id']; - $is_admin = ($_SESSION['user_role_name'] ?? '') === 'Administrator'; - $assigned_outlets = isset($_SESSION['assigned_outlets']) ? explode(',', $_SESSION['assigned_outlets']) : []; - if ($is_admin || in_array($target, $assigned_outlets)) { - $_SESSION['outlet_id'] = ($target === 0 && $is_admin) ? null : $target; - } - header("Location: " . ($_SERVER['HTTP_REFERER'] ?? 'index.php')); - exit; -} - if (isset($_GET['action']) && $_GET['action'] === 'download_items_template') { header('Content-Type: text/csv; charset=utf-8'); header('Content-Disposition: attachment; filename=items_import_template.csv'); @@ -287,14 +276,13 @@ function renderPagination($currentPage, $totalPages) { - - @@ -4573,71 +3840,6 @@ $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Accounting System'; body { font-size: 12px !important; color: #000 !important; background: #fff !important; } @page { margin: 1cm; } } - - /* Thermal Receipt Layout */ - .thermal-receipt { - width: 300px; - margin: 0 auto; - background: #fff; - color: #000; - font-family: 'Courier New', Courier, monospace; - font-size: 12px; - line-height: 1.4; - padding: 10px; - } - .thermal-receipt .center { - text-align: center; - } - .thermal-receipt .separator { - border-bottom: 1px dashed #000; - margin: 8px 0; - } - .thermal-receipt table { - width: 100%; - border-collapse: collapse; - } - .thermal-receipt table th, .thermal-receipt table td { - padding: 4px 2px; - text-align: left; - vertical-align: top; - } - .thermal-receipt table th { - border-bottom: 1px dashed #000; - font-weight: bold; - } - .thermal-receipt .total-row { - font-weight: bold; - font-size: 14px; - border-top: 1px dashed #000; - border-bottom: 1px dashed #000; - padding: 5px 0; - margin: 5px 0; - } - .thermal-receipt.rtl { - direction: rtl; - text-align: right; - } - .thermal-receipt.rtl table th, .thermal-receipt.rtl table td { - text-align: right; - } - @media print { - body.printing-receipt { - background: none; - } - body.printing-receipt .thermal-receipt-print { - width: 100% !important; - max-width: 300px; /* typically 80mm thermal paper width */ - margin: 0; - padding: 0; - } - body.printing-receipt #posPrintArea { - position: absolute; - top: 0; - left: 0; - width: 100%; - } - } - .print-only { display: none; } [dir="rtl"] { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } @@ -4894,20 +4096,12 @@ $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Accounting System'; - -