diff --git a/assets/js/main.js b/assets/js/main.js index b21d2c4..1da9f32 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -116,7 +116,7 @@ document.addEventListener('DOMContentLoaded', () => { if (typeof Swal !== 'undefined') { Swal.fire('Empty Cart', 'Please add items before saving.', 'warning'); } else { - alert('Cart is empty'); + Swal.fire({icon: 'warning', text: 'Cart is empty'}); } } }); diff --git a/cookies.txt b/cookies.txt index 0f3bb80..2fea899 100644 --- a/cookies.txt +++ b/cookies.txt @@ -2,4 +2,4 @@ # https://curl.se/docs/http-cookies.html # This file was generated by libcurl! Edit at your own risk. -127.0.0.1 FALSE / FALSE 0 PHPSESSID une8u6o0qtfojm7tp3ppv39knh +127.0.0.1 FALSE / FALSE 0 PHPSESSID knhve7lgedl0acegda65ol7h47 diff --git a/edit_online_order.php b/edit_online_order.php index b8c9aa1..a1f4db4 100644 --- a/edit_online_order.php +++ b/edit_online_order.php @@ -563,7 +563,7 @@ renderInvoice(); document.getElementById('smart-sale-form').addEventListener('submit', function(e) { if (Object.keys(invoiceItems).length === 0) { e.preventDefault(); - alert(''); + Swal.fire({icon: 'warning', text: ''}); } }); diff --git a/edit_sale.php b/edit_sale.php index 405239a..7396512 100644 --- a/edit_sale.php +++ b/edit_sale.php @@ -43,6 +43,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $error = tr('اختر فرعاً صالحاً لهذه الصلاحية.', 'Choose a valid branch for this role.'); } elseif (!in_array($paymentMethod, ['cash', 'card', 'transfer', 'pay_later'], true)) { $error = tr('اختر طريقة دفع صحيحة.', 'Choose a valid payment method.'); + } elseif ($paymentMethod === 'pay_later' && !$customerId) { + $error = tr('يجب اختيار عميل مسجل للدفع الآجل.', 'You must select a registered customer for pay later.'); } elseif (!is_array($items) || $items === []) { $error = tr('أضف صنفاً واحداً على الأقل إلى الفاتورة.', 'Add at least one item to the invoice.'); } else { @@ -521,7 +523,7 @@ async function saveNewCustomer() { const name = document.getElementById('ncName').value.trim(); const phone = document.getElementById('ncPhone').value.trim(); if (!name) { - alert(''); + Swal.fire({icon: 'warning', text: ''}); return; } @@ -543,10 +545,10 @@ async function saveNewCustomer() { const Toast = Swal.mixin({ toast: true, position: 'top-end', showConfirmButton: false, timer: 2000 }); Toast.fire({ icon: 'success', title: '' }); } else { - alert(data.error); + Swal.fire({icon: 'warning', text: data.error}); } } catch(err) { - alert('Error saving customer'); + Swal.fire({icon: 'warning', text: 'Error saving customer'}); } } @@ -708,9 +710,14 @@ renderInvoice(); // Intercept form submission to check if items exist document.getElementById('smart-sale-form').addEventListener('submit', function(e) { + const paymentMethod = document.querySelector('select[name="payment_method"]').value; + const customerId = document.getElementById('formCustomerId').value; if (Object.keys(invoiceItems).length === 0) { e.preventDefault(); - alert(''); + Swal.fire({icon: 'warning', text: ''}); + } else if (paymentMethod === 'pay_later' && !customerId) { + e.preventDefault(); + Swal.fire({icon: 'warning', text: ''}); } }); diff --git a/includes/app.php b/includes/app.php index 9c5c7bc..965ef32 100644 --- a/includes/app.php +++ b/includes/app.php @@ -274,11 +274,12 @@ function catalog(): array { try { $db = db(); - $stmt = $db->query("SELECT items.*, units.name_ar as u_name_ar, units.name_en as u_name_en FROM items LEFT JOIN units ON items.unit_id = units.id"); + $stmt = $db->query("SELECT items.*, units.name_ar as u_name_ar, units.name_en as u_name_en FROM items LEFT JOIN units ON items.unit_id = units.id ORDER BY items.created_at DESC, items.id DESC"); $items = $stmt->fetchAll(PDO::FETCH_ASSOC); $catalog = []; foreach ($items as $item) { $catalog[$item["sku"]] = [ + "id" => (int)($item["id"] ?? 0), "sku" => $item["sku"], "name_ar" => $item["name"], "name_en" => $item["name"], @@ -289,6 +290,7 @@ function catalog(): array "category_id" => $item["category_id"], "in_catalog" => (int)($item["in_catalog"] ?? 0), "supplier_id" => $item["supplier_id"], "image_url" => $item["image_url"], + "created_at" => $item["created_at"] ?? null, "unit_id" => $item["unit_id"], "unit_ar" => $item["u_name_ar"] ?? "قطعة", "unit_en" => $item["u_name_en"] ?? "pcs" diff --git a/includes/footer.php b/includes/footer.php index 84fd362..93f69fd 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -38,6 +38,24 @@ $isPublic = !isset($user) || !$user; } }); + \ No newline at end of file diff --git a/includes/purchase_form.php b/includes/purchase_form.php index ffdc3b4..d47443b 100644 --- a/includes/purchase_form.php +++ b/includes/purchase_form.php @@ -474,7 +474,7 @@ async function saveNewCustomer() { const name = document.getElementById('ncName').value.trim(); const phone = document.getElementById('ncPhone').value.trim(); if (!name) { - alert(''); + Swal.fire({icon: 'warning', text: ''}); return; } @@ -495,10 +495,10 @@ async function saveNewCustomer() { const Toast = Swal.mixin({ toast: true, position: 'top-end', showConfirmButton: false, timer: 2000 }); Toast.fire({ icon: 'success', title: '' }); } else { - alert(data.error); + Swal.fire({icon: 'warning', text: data.error}); } } catch(err) { - alert('Error saving customer'); + Swal.fire({icon: 'warning', text: 'Error saving customer'}); } } @@ -667,7 +667,7 @@ function updateTotals(total, vat) { document.getElementById('smart-sale-form').addEventListener('submit', function(e) { if (Object.keys(invoiceItems).length === 0) { e.preventDefault(); - alert(''); + Swal.fire({icon: 'warning', text: ''}); } }); diff --git a/includes/sale_form.php b/includes/sale_form.php index 20b66b0..d02d028 100644 --- a/includes/sale_form.php +++ b/includes/sale_form.php @@ -28,6 +28,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $error = tr('اختر فرعاً صالحاً لهذه الصلاحية.', 'Choose a valid branch for this role.'); } elseif (!in_array($paymentMethod, ['cash', 'card', 'transfer', 'pay_later'], true)) { $error = tr('اختر طريقة دفع صحيحة.', 'Choose a valid payment method.'); + } elseif ($paymentMethod === 'pay_later' && !$customerId) { + $error = tr('يجب اختيار عميل مسجل للدفع الآجل.', 'You must select a registered customer for pay later.'); } elseif (!is_array($items) || $items === []) { $error = tr('أضف صنفاً واحداً على الأقل إلى الفاتورة.', 'Add at least one item to the invoice.'); } else { @@ -488,7 +490,7 @@ async function saveNewCustomer() { const name = document.getElementById('ncName').value.trim(); const phone = document.getElementById('ncPhone').value.trim(); if (!name) { - alert(''); + Swal.fire({icon: 'warning', text: ''}); return; } @@ -510,10 +512,10 @@ async function saveNewCustomer() { const Toast = Swal.mixin({ toast: true, position: 'top-end', showConfirmButton: false, timer: 2000 }); Toast.fire({ icon: 'success', title: '' }); } else { - alert(data.error); + Swal.fire({icon: 'warning', text: data.error}); } } catch(err) { - alert('Error saving customer'); + Swal.fire({icon: 'warning', text: 'Error saving customer'}); } } @@ -673,9 +675,14 @@ function updateTotals(total, vat) { // Intercept form submission to check if items exist document.getElementById('smart-sale-form').addEventListener('submit', function(e) { + const paymentMethod = document.querySelector('select[name="payment_method"]').value; + const customerId = document.getElementById('formCustomerId').value; if (Object.keys(invoiceItems).length === 0) { e.preventDefault(); - alert(''); + Swal.fire({icon: 'warning', text: ''}); + } else if (paymentMethod === 'pay_later' && !customerId) { + e.preventDefault(); + Swal.fire({icon: 'warning', text: ''}); } }); diff --git a/online_orders.php b/online_orders.php index 99481d5..7141b7a 100644 --- a/online_orders.php +++ b/online_orders.php @@ -151,7 +151,7 @@ require __DIR__ . '/includes/header.php';
  • -
    + diff --git a/patch.php b/patch.php deleted file mode 100644 index 55dd624..0000000 --- a/patch.php +++ /dev/null @@ -1,76 +0,0 @@ -query("SHOW COLUMNS FROM branches LIKE 'avatar'"); - if (\$stmt2->rowCount() === 0) { - \$pdo->exec("ALTER TABLE branches ADD COLUMN avatar varchar(255) DEFAULT NULL"); - } - @file_put_contents(\$flagFile, '1'); -S1; - -$r1 = <<query("SHOW COLUMNS FROM branches LIKE 'avatar'"); - if (\$stmt2->rowCount() === 0) { - \$pdo->exec("ALTER TABLE branches ADD COLUMN avatar varchar(255) DEFAULT NULL"); - } - \$stmt3 = \pdo->query("SHOW COLUMNS FROM sales_orders LIKE 'customer_id'"); - if (\$stmt3->rowCount() === 0) { - \$pdo->exec("ALTER TABLE sales_orders ADD COLUMN customer_id int(10) unsigned DEFAULT NULL"); - } - \$stmt4 = \pdo->query("SHOW COLUMNS FROM sales_orders LIKE 'payment_status'"); - if (\$stmt4->rowCount() === 0) { - \$pdo->exec("ALTER TABLE sales_orders ADD COLUMN payment_status varchar(20) NOT NULL DEFAULT 'paid'"); - } - @file_put_contents(\$flagFile, '1'); -R1; - -$c = str_replace($s1, $r1, $c); - -// add to ensure_sales_table() -$s2 = <<bindValue(':customer_name', $data['customer_name']); - $stmt->bindValue(':payment_method', $data['payment_method']); -S4; - -$r4 = <<bindValue(':customer_id', $data['customer_id'] ?? null, PDO::PARAM_INT); - $stmt->bindValue(':customer_name', $data['customer_name']); - $stmt->bindValue(':payment_method', $data['payment_method']); - $stmt->bindValue(':payment_status', $data['payment_status'] ?? 'paid'); -R4; -$c = str_replace($s4, $r4, $c); - -file_put_contents('includes/app.php', $c); -echo "Patched includes/app.php\n"; diff --git a/patch_import.py b/patch_import.py deleted file mode 100644 index a7c1080..0000000 --- a/patch_import.py +++ /dev/null @@ -1,118 +0,0 @@ -import re - -with open("stock.php", "r", encoding="utf-8") as f: - content = f.read() - -# Replace block from `// Handle Import CSV` to `// Handle AJAX actions` -start_marker = "// Handle Import CSV" -end_marker = "// Handle AJAX actions" -start_idx = content.find(start_marker) -end_idx = content.find(end_marker) - -if start_idx == -1 or end_idx == -1: - print("Could not find import_csv block") - exit(1) - -new_import_code = """// Handle Import CSV -if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['action']) && $_POST['action'] === 'import_csv') { - if (isset($_FILES['csv_file']) && $_FILES['csv_file']['error'] === UPLOAD_ERR_OK) { - require_once __DIR__ . '/includes/SimpleXLSX.php'; - $pdo = db(); - $file_path = $_FILES['csv_file']['tmp_name']; - $raw_content = file_get_contents($file_path); - - $rows = []; - # Check if XLSX (starts with PK) - if (str_starts_with($raw_content, 'PK')) { - if ( $xlsx = Shuchkin\SimpleXLSX::parse($file_path) ) { - $rows = $xlsx->rows(); - if (count($rows) > 0) { - array_shift($rows); # Remove header - } - } else { - header('Location: stock.php?import_error=' . urlencode('خطأ في قراءة ملف الإكسل (XLSX). يرجى التأكد من أن الملف سليم.')); - exit; - } - } else { - # Treat as CSV - # Remove UTF-8 BOM if present - if (str_starts_with($raw_content, "\xEF\xBB\xBF")) { - $raw_content = substr($raw_content, 3); - } - - # Fix encoding for Windows-1256 (common in Arabic Excel exports) - if (!mb_check_encoding($raw_content, 'UTF-8')) { - $raw_content = mb_convert_encoding($raw_content, 'UTF-8', 'Windows-1256'); - } - - # Determine delimiter by checking first line - $first_line = strtok($raw_content, "\r\n"); - $delimiter = ','; - if ($first_line !== false && substr_count($first_line, ';') > substr_count($first_line, ',')) { - $delimiter = ';'; - } - - $clean_file = tmpfile(); - fwrite($clean_file, $raw_content); - rewind($clean_file); - - $header = fgetcsv($clean_file, 0, $delimiter); - while (($row = fgetcsv($clean_file, 0, $delimiter)) !== false) { - $rows[] = $row; - } - fclose($clean_file); - } - - $imported = 0; $updated = 0; - $pdo->beginTransaction(); - try { - $stmtInsert = $pdo->prepare("INSERT INTO items (sku, name, price, cost_price, base_stock, vat, category_id, supplier_id, unit_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)"); - $stmtUpdate = $pdo->prepare("UPDATE items SET name=?, price=?, cost_price=?, base_stock=?, vat=?, category_id=?, supplier_id=?, unit_id=? WHERE sku=?"); - $stmtCheck = $pdo->prepare("SELECT id FROM items WHERE sku=?"); - - foreach ($rows as $row) { - if (count($row) < 5) continue; - $sku = trim((string)$row[0]); $name = trim((string)$row[1]); - if ($sku === '' || $name === '') continue; - $price = (float)($row[2] ?? 0); - $cost_price = (float)($row[3] ?? 0); - $base_stock = (int)($row[4] ?? 0); - $vat = (float)($row[5] ?? 5); - $category_id = !empty($row[6]) ? (int)$row[6] : null; - $supplier_id = !empty($row[7]) ? (int)$row[7] : null; - $unit_id = !empty($row[8]) ? (int)$row[8] : null; - $stmtCheck->execute([$sku]); - if ($stmtCheck->fetchColumn()) { - $stmtUpdate->execute([$name, $price, $cost_price, $base_stock, $vat, $category_id, $supplier_id, $unit_id, $sku]); - $updated++; - } else { - $stmtInsert->execute([$sku, $name, $price, $cost_price, $base_stock, $vat, $category_id, $supplier_id, $unit_id]); - $imported++; - } - } - $pdo->commit(); - header('Location: stock.php?import_success=1&imported='.$imported.'&updated='.$updated); - exit; - } catch (Exception $e) { - $pdo->rollBack(); - header('Location: stock.php?import_error='.urlencode($e->getMessage())); - exit; - } - } - header('Location: stock.php?import_error=No+file'); - exit; -} - -""" - -content = content[:start_idx] + new_import_code + content[end_idx:] - -# Update the modal text to reflect XLSX support -content = content.replace("ملاحظة: يدعم النظام ملفات CSV فقط. يرجى حفظ ملف Excel بصيغة (CSV UTF-8).", "ملاحظة: يدعم النظام الآن ملفات Excel (XLSX) بالإضافة إلى CSV.") -content = content.replace("Note: The system supports CSV files only. Please save your Excel file as (CSV UTF-8).", "Note: The system now supports Excel (XLSX) files in addition to CSV.") -content = content.replace('accept=".csv"', 'accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"') - -with open("stock.php", "w", encoding="utf-8") as f: - f.write(content) - -print("Patched successfully") diff --git a/patch_import_fk.py b/patch_import_fk.py deleted file mode 100644 index d718e4b..0000000 --- a/patch_import_fk.py +++ /dev/null @@ -1,31 +0,0 @@ -import re - -with open("stock.php", "r") as f: - content = f.read() - -replacement = """ $valid_categories = $pdo->query("SELECT id FROM categories")->fetchAll(PDO::FETCH_COLUMN); - $valid_suppliers = $pdo->query("SELECT id FROM suppliers")->fetchAll(PDO::FETCH_COLUMN); - $valid_units = $pdo->query("SELECT id FROM units")->fetchAll(PDO::FETCH_COLUMN); - - foreach ($rows as $row) { - if (count($row) < 5) continue; - $sku = trim((string)$row[0]); $name = trim((string)$row[1]); - if ($sku === '' || $name === '') continue; - $price = (float)($row[2] ?? 0); - $cost_price = (float)($row[3] ?? 0); - $base_stock = (int)($row[4] ?? 0); - $vat = (float)($row[5] ?? 5); - $category_id = (!empty($row[6]) && in_array((int)$row[6], $valid_categories)) ? (int)$row[6] : null; - $supplier_id = (!empty($row[7]) && in_array((int)$row[7], $valid_suppliers)) ? (int)$row[7] : null; - $unit_id = (!empty($row[8]) && in_array((int)$row[8], $valid_units)) ? (int)$row[8] : null;""" - -pattern = r" foreach \(\$rows as \$row\) \{[^\}]+?\$unit_id = !empty\(\$row\[8\]\) \? \(int\)\$row\[8\] : null;" - -new_content = re.sub(pattern, replacement, content, flags=re.DOTALL) - -if replacement in new_content: - with open("stock.php", "w") as f: - f.write(new_content) - print("Success") -else: - print("Failed") \ No newline at end of file diff --git a/patch_stock.py b/patch_stock.py deleted file mode 100644 index 41b3803..0000000 --- a/patch_stock.py +++ /dev/null @@ -1,44 +0,0 @@ -import re - -with open('stock.php', 'r') as f: - content = f.read() - -# Update openItemModal definition -content = content.replace( - "function openItemModal(sku = '', name = '', price = '', cost_price = '', base_stock = '', vat = '', category_id = '', supplier_id = '', unit_id = '', image_url = '') {", - "function openItemModal(sku = '', name = '', price = '', cost_price = '', base_stock = '', vat = '', category_id = '', supplier_id = '', unit_id = '', image_url = '', in_catalog = 0) {" -) - -# Add UI toggle in the form -switch_html = """ -
    - -
    - - -
    -
    -""" -content = content.replace( - '
    \n ', - switch_html + '
    \n ' -) - -# Update Javascript form handling -content = content.replace( - "document.getElementById('item_unit').value = unit_id;", - "document.getElementById('item_unit').value = unit_id;\n document.getElementById('item_in_catalog').checked = (parseInt(in_catalog) === 1);" -) - -content = content.replace( - "formData.append('unit_id', document.getElementById('item_unit').value);", - "formData.append('unit_id', document.getElementById('item_unit').value);\n formData.append('in_catalog', document.getElementById('item_in_catalog').checked ? '1' : '0');" -) - -# Replace the onclick in the button where we pass the arguments -search_str = "onclick=\"openItemModal('', '', '', '', '', '', '', '', '', '')\"" -replace_str = "onclick=\"openItemModal('', '', '', '', '', '', '', '', '', '', '')\"" -content = content.replace(search_str, replace_str) - -with open('stock.php', 'w') as f: - f.write(content) diff --git a/pos.php b/pos.php index ad8ecf7..99caa1e 100644 --- a/pos.php +++ b/pos.php @@ -31,6 +31,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $error = tr('اختر فرعاً صالحاً لهذه الصلاحية.', 'Choose a valid branch for this role.'); } elseif (!in_array($paymentMethod, ['cash', 'card', 'transfer', 'pay_later'], true)) { $error = tr('اختر طريقة دفع صحيحة.', 'Choose a valid payment method.'); + } elseif ($paymentMethod === 'pay_later' && !$customerId) { + $error = tr('يجب اختيار عميل مسجل للدفع الآجل.', 'You must select a registered customer for pay later.'); } elseif (!is_array($items) || $items === []) { $error = tr('أضف صنفاً واحداً على الأقل إلى السلة.', 'Add at least one item to the cart.'); } else { @@ -202,17 +204,58 @@ require __DIR__ . '/includes/header.php'; padding: 0.75rem; text-align: center; } +.product-badges { + display: flex; + justify-content: center; + gap: 0.35rem; + flex-wrap: wrap; + margin-bottom: 0.4rem; +} +.product-badge { + display: inline-flex; + align-items: center; + justify-content: center; + padding: 0.15rem 0.5rem; + border-radius: 999px; + font-size: 0.72rem; + font-weight: 700; + line-height: 1; +} +.product-badge-new { + background: rgba(13, 202, 240, 0.14); + color: #087990; +} +.product-badge-no-image { + background: rgba(108, 117, 125, 0.12); + color: #6c757d; +} .product-title { font-size: 0.9rem; font-weight: 600; - margin-bottom: 0.25rem; + margin-bottom: 0.35rem; color: #212529; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; + line-height: 1.25; + min-height: 2.5em; + word-break: break-word; +} +.product-meta { + display: flex; + flex-direction: column; + gap: 0.15rem; + margin-bottom: 0.5rem; +} +.product-sku, +.product-created { + font-size: 0.76rem; + color: #6c757d; line-height: 1.2; - height: 2.4em; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } .product-price { font-weight: 700; @@ -383,22 +426,38 @@ require __DIR__ . '/includes/header.php'; $itemPrice = h($item['price']); $itemCat = h($item['category_id'] ?? ''); $imageUrl = !empty($item['image_url']) ? h($item['image_url']) : ''; + $createdAtRaw = (string)($item['created_at'] ?? ''); + $createdAtStamp = $createdAtRaw !== '' ? strtotime($createdAtRaw) : false; + $isRecentlyAdded = $createdAtStamp && $createdAtStamp >= strtotime('-7 days'); + $createdLabel = $createdAtStamp ? date('Y-m-d', $createdAtStamp) : ''; ?> -
    +
    <?= $imgAlt ?> - - + +
    -
    -
    +
    + + + + + + +
    +
    +
    +
    SKU:
    + +
    :
    + +
    +
    @@ -610,7 +669,7 @@ async function saveNewCustomer() { const name = document.getElementById('ncName').value.trim(); const phone = document.getElementById('ncPhone').value.trim(); if (!name) { - alert(''); + Swal.fire({icon: 'warning', text: ''}); return; } @@ -632,10 +691,10 @@ async function saveNewCustomer() { const Toast = Swal.mixin({ toast: true, position: 'top-end', showConfirmButton: false, timer: 2000 }); Toast.fire({ icon: 'success', title: '' }); } else { - alert(data.error); + Swal.fire({icon: 'warning', text: data.error}); } } catch(err) { - alert('Error saving customer'); + Swal.fire({icon: 'warning', text: 'Error saving customer'}); } } @@ -665,21 +724,17 @@ document.getElementById('posBarcode').addEventListener('keypress', function(e) { }); function applyFilters() { - const q = document.getElementById('posSearch').value.toLowerCase(); + const q = document.getElementById('posSearch').value.toLowerCase().trim(); const activeCat = document.querySelector('.cat-btn.active').dataset.cat; document.querySelectorAll('.product-card').forEach(card => { - const name = card.dataset.name.toLowerCase(); + const searchable = (card.dataset.search || card.dataset.name || '').toLowerCase(); const cat = card.dataset.cat; - const matchesSearch = name.includes(q); + const matchesSearch = q === '' || searchable.includes(q); const matchesCat = (activeCat === 'all' || cat === activeCat); - if (matchesSearch && matchesCat) { - card.style.display = 'block'; - } else { - card.style.display = 'none'; - } + card.style.display = (matchesSearch && matchesCat) ? 'block' : 'none'; }); } @@ -807,6 +862,11 @@ function submitSale(method) { const branch = document.getElementById('posBranch').value || ''; const customer = document.getElementById('posCustomer').value; const customerId = document.getElementById('posCustomer').dataset.id || ''; + + if (method === 'pay_later' && !customerId) { + Swal.fire({icon: 'warning', text: ''}); + return; + } const itemsArr = Object.values(cart).map(item => ({ sku: item.sku, @@ -914,11 +974,24 @@ function resumeOrder(index) { // Warn if cart is not empty if (Object.keys(cart).length > 0) { - if (!confirm('')) { - return; - } + Swal.fire({ + title: '', + text: '', + icon: 'warning', + showCancelButton: true, + confirmButtonText: '', + cancelButtonText: '' + }).then((result) => { + if (result.isConfirmed) { + doResumeOrder(index, order, orders); + } + }); + } else { + doResumeOrder(index, order, orders); } - +} + +function doResumeOrder(index, order, orders) { cart = order.cart; document.getElementById('posCustomer').value = order.name.includes('#') ? '' : order.name; if (document.getElementById('posBranch').querySelector(`option[value="${order.branch}"]`)) { diff --git a/pos_out.html b/pos_out.html new file mode 100644 index 0000000..e9896f3 --- /dev/null +++ b/pos_out.html @@ -0,0 +1,5363 @@ + + + + + + نقاط البيع · حلوى الريامي | Al Riyami Sweets + + + + + + + + + + + + + + + + + +
    + + + + + +
    + + +
    + + + + + + +
    + +
    + +
    +
    +
    + + +
    +
    + + +
    +
    +
    + +
    +
    + + +
    + + + + +
    + + +
    +
    +
    + صورة المنتج +
    +
    +
    Laptop Pro 15
    +
    1,200.000 ر.ع
    +
    +
    +
    +
    + صورة المنتج +
    +
    +
    Wireless Mouse
    +
    2.500 ر.ع
    +
    +
    +
    +
    + صورة المنتج +
    +
    +
    Mechanical Keyboard
    +
    3.500 ر.ع
    +
    +
    +
    +
    + صورة المنتج +
    +
    +
    USB-C Hub
    +
    5.230 ر.ع
    +
    +
    +
    +
    + صورة المنتج +
    +
    +
    Cotton T-Shirt
    +
    1.700 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    حلوى بالزعفران
    +
    3.000 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    حلوى الفرصاد
    +
    5.000 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    حلوى عادية
    +
    2.000 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    رهش مشكل
    +
    3.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    حلوى هدايا
    +
    2.800 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    هدايا مختلفة
    +
    5.650 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 0
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 1
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 2
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 3
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 4
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 5
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 6
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 7
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 8
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 9
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 10
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 11
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 12
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 13
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 14
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 15
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 16
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 17
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 18
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 19
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 20
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 21
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 22
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 23
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 24
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 25
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 26
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 27
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 28
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 29
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 30
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 31
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 32
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 33
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 34
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 35
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 36
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 37
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 38
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 39
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 40
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 41
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 42
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 43
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 44
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 45
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 46
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 47
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 48
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 49
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 50
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 51
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 52
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 53
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 54
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 55
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 56
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 57
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 58
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 59
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 60
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 61
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 62
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 63
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 64
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 65
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 66
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 67
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 68
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 69
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 70
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 71
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 72
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 73
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 74
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 75
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 76
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 77
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 78
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 79
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 80
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 81
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 82
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 83
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 84
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 85
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 86
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 87
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 88
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 89
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 90
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 91
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 92
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 93
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 94
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 95
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 96
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 97
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 98
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 99
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 100
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 101
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 102
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 103
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 104
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 105
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 106
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 107
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 108
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 109
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 110
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 111
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 112
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 113
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 114
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 115
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 116
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 117
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 118
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 119
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 120
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 121
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 122
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 123
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 124
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 125
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 126
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 127
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 128
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 129
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 130
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 131
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 132
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 133
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 134
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 135
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 136
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 137
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 138
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 139
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 140
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 141
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 142
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 143
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 144
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 145
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 146
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 147
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 148
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 149
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 150
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 151
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 152
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 153
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 154
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 155
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 156
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 157
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 158
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 159
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 160
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 161
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 162
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 163
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 164
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 165
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 166
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 167
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 168
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 169
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 170
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 171
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 172
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 173
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 174
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 175
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 176
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 177
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 178
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 179
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 180
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 181
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 182
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 183
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 184
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 185
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 186
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 187
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 188
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 189
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 190
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 191
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 192
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 193
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 194
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 195
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 196
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 197
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 198
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 199
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 200
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 201
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 202
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 203
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 204
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 205
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 206
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 207
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 208
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 209
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 210
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 211
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 212
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 213
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 214
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 215
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 216
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 217
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 218
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 219
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 220
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 221
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 222
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 223
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 224
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 225
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 226
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 227
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 228
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 229
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 230
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 231
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 232
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 233
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 234
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 235
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 236
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 237
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 238
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 239
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 240
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 241
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 242
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 243
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 244
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 245
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 246
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 247
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 248
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 249
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 250
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 251
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 252
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 253
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 254
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 255
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 256
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 257
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 258
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 259
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 260
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 261
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 262
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 263
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 264
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 265
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 266
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 267
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 268
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 269
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 270
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 271
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 272
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 273
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 274
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 275
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 276
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 277
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 278
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 279
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 280
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 281
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 282
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 283
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 284
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 285
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 286
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 287
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 288
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 289
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 290
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 291
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 292
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 293
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 294
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 295
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 296
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 297
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 298
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 299
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 300
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 301
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 302
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 303
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 304
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 305
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 306
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 307
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 308
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 309
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 310
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 311
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 312
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 313
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 314
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 315
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 316
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 317
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 318
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 319
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 320
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 321
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 322
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 323
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 324
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 325
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 326
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 327
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 328
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 329
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 330
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 331
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 332
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 333
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 334
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 335
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 336
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 337
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 338
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 339
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 340
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 341
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 342
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 343
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 344
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 345
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 346
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 347
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 348
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 349
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 350
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 351
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 352
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 353
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 354
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 355
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 356
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 357
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 358
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 359
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 360
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 361
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 362
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 363
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 364
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 365
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 366
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 367
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 368
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 369
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 370
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 371
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 372
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 373
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 374
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 375
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 376
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 377
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 378
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 379
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 380
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 381
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 382
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 383
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 384
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 385
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 386
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 387
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 388
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 389
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 390
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 391
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 392
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 393
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 394
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 395
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 396
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 397
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 398
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 399
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 400
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 401
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 402
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 403
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 404
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 405
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 406
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 407
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 408
    +
    1.500 ر.ع
    +
    +
    +
    +
    + +
    +
    +
    Test Product 409
    +
    1.500 ر.ع
    +
    +
    +
    +
    + + +
    +
    +
    سلة المشتريات
    + 0 +
    + +
    + +
    + + +
    +
    +
    + +
    + +
    + +

    السلة فارغة، اختر بعض الأصناف.

    +
    +
    + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + +
    + + +
    +
    +
    + © 2026 حلوى الريامي. جميع الحقوق محفوظة.
    +
    + تم التطوير بواسطة Flatlogic +
    +
    +
    + + +
    +
    + + + + + + + + + \ No newline at end of file diff --git a/pos_out2.html b/pos_out2.html new file mode 100644 index 0000000..e69de29 diff --git a/print_receipt.php b/print_receipt.php index 4133667..2365199 100644 --- a/print_receipt.php +++ b/print_receipt.php @@ -253,9 +253,18 @@ $registerNo = 'REG-01';
    +
    - +
    @@ -283,4 +292,4 @@ $registerNo = 'REG-01'; - + \ No newline at end of file diff --git a/reports.php b/reports.php index 290fa68..37bb1fa 100644 --- a/reports.php +++ b/reports.php @@ -566,9 +566,7 @@ require __DIR__ . '/includes/header.php'; diff --git a/sale.php b/sale.php index 53e37da..5b89862 100644 --- a/sale.php +++ b/sale.php @@ -355,8 +355,17 @@ require __DIR__ . '/includes/header.php';
    :
    +
    :
    -
    +
    :
    diff --git a/users.php b/users.php index deb3d07..219e3ce 100644 --- a/users.php +++ b/users.php @@ -165,7 +165,7 @@ require __DIR__ . '/includes/header.php'; -
    +