Kgshop commited on
Commit
c8d9b26
·
verified ·
1 Parent(s): d85ac99

Automated backup transactions.json 2026-05-03 10:08:58 +05+0500

Browse files
Files changed (1) hide show
  1. transactions.json +66 -0
transactions.json CHANGED
@@ -6634,5 +6634,71 @@
6634
  "note": "Оплочено ",
6635
  "payment_method": "cash",
6636
  "invoice_html": "\n <!DOCTYPE html>\n <html lang=\"ru\">\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Накладная dd29a5d5</title>\n <style>\n body { font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif; margin: 0; padding: 10px; background-color: #f4f4f4; color: #333; }\n .invoice-box { max-width: 800px; margin: auto; padding: 20px; border: 1px solid #eee; background: white; box-shadow: 0 0 10px rgba(0,0,0,0.15); }\n .header { text-align: center; margin-bottom: 20px; }\n .header h1 { margin: 0; font-size: 22px; font-weight: 600; }\n .header p { margin: 2px 0; font-size: 14px; }\n .details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; font-size: 14px; }\n table { width: 100%; line-height: inherit; text-align: left; border-collapse: collapse; }\n table th { background: #f2f2f2; font-weight: bold; padding: 8px; border-bottom: 2px solid #ddd; }\n table td { padding: 8px; border-bottom: 1px solid #eee; }\n table tr.total td { font-weight: bold; font-size: 1.1em; border-top: 2px solid #ddd; }\n .footer-info { font-size: 14px; margin-top: 20px; }\n .print-hide { display: block; }\n @media print {\n body { margin: 0; padding: 0; background-color: #fff; }\n .invoice-box { box-shadow: none; border: none; margin: 0; padding: 0; }\n .print-hide { display: none; }\n }\n @media screen and (max-width: 600px) {\n body { padding: 0; }\n .invoice-box { padding: 15px; box-shadow: none; border: none; }\n .details-grid { grid-template-columns: 1fr; gap: 10px; }\n table th, table td { font-size: 12px; padding: 5px; }\n .header h1 { font-size: 18px; }\n .header p { font-size: 12px; }\n table tr.total td { font-size: 1em; }\n }\n </style>\n </head>\n <body>\n <div class=\"invoice-box\">\n <div class=\"print-hide\" style=\"text-align: right; margin-bottom: 20px;\">\n <button onclick=\"window.print()\" style=\"padding: 8px 12px; font-size: 14px; cursor: pointer; background: #6c757d; color: white; border: none; border-radius: 4px;\">Печать</button>\n <button onclick=\"editReceipt()\" style=\"padding: 8px 12px; font-size: 14px; cursor: pointer; background: #ffc107; color: #000; border: none; border-radius: 4px; margin-left: 10px;\">Изменить накладную</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № dd29a5d5</h1>\n <p>от 03.05.2026 09:01</p>\n </div>\n <table>\n <thead>\n <tr>\n <th style=\"text-align: center; width: 5%;\">№</th>\n <th style=\"text-align: left;\">Наименование</th>\n <th style=\"text-align: right;\">Кол-во</th>\n <th style=\"text-align: right;\">Цена</th>\n <th style=\"text-align: right;\">Сумма</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td style=\"text-align: center;\">1</td>\n <td>Мороз 400 </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">150 000</td>\n \n <td style=\"text-align: right;\">150 000</td>\n </tr>\n </tbody>\n </table>\n <table style=\"margin-top: 20px;\">\n \n <tr class=\"total\">\n <td colspan=\"4\" style=\"text-align: right;\">Итого к оплате:</td>\n <td style=\"text-align: right;\">150 000 ₸</td>\n </tr>\n \n </table>\n \n <div style=\"margin-top: 20px; padding: 10px; border: 2px solid #333; background-color: #fdfdea; border-radius: 5px;\">\n <h4 style=\"margin: 0 0 5px 0; font-size: 16px;\">Примечание к заказу:</h4>\n <p style=\"margin: 0; white-space: pre-wrap; font-size: 14px;\">Оплочено </p>\n </div>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Мухамед 87085076936</p>\n </div>\n \n </div>\n <script>\n function editReceipt() {\n let code = prompt(\"Введите ПИН-код кассира или пароль администратора для изменения накладной:\");\n if (!code) return;\n fetch('/api/auth/universal', {\n method: 'POST',\n headers: {'Content-Type': 'application/json'},\n body: JSON.stringify({code: code})\n })\n .then(r => r.json())\n .then(d => {\n if (d.success) {\n window.location.href = '/?edit_tx=dd29a5d5f0be487a855eb40c65f7c9e1';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6637
  }
6638
  ]
 
6634
  "note": "Оплочено ",
6635
  "payment_method": "cash",
6636
  "invoice_html": "\n <!DOCTYPE html>\n <html lang=\"ru\">\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Накладная dd29a5d5</title>\n <style>\n body { font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif; margin: 0; padding: 10px; background-color: #f4f4f4; color: #333; }\n .invoice-box { max-width: 800px; margin: auto; padding: 20px; border: 1px solid #eee; background: white; box-shadow: 0 0 10px rgba(0,0,0,0.15); }\n .header { text-align: center; margin-bottom: 20px; }\n .header h1 { margin: 0; font-size: 22px; font-weight: 600; }\n .header p { margin: 2px 0; font-size: 14px; }\n .details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; font-size: 14px; }\n table { width: 100%; line-height: inherit; text-align: left; border-collapse: collapse; }\n table th { background: #f2f2f2; font-weight: bold; padding: 8px; border-bottom: 2px solid #ddd; }\n table td { padding: 8px; border-bottom: 1px solid #eee; }\n table tr.total td { font-weight: bold; font-size: 1.1em; border-top: 2px solid #ddd; }\n .footer-info { font-size: 14px; margin-top: 20px; }\n .print-hide { display: block; }\n @media print {\n body { margin: 0; padding: 0; background-color: #fff; }\n .invoice-box { box-shadow: none; border: none; margin: 0; padding: 0; }\n .print-hide { display: none; }\n }\n @media screen and (max-width: 600px) {\n body { padding: 0; }\n .invoice-box { padding: 15px; box-shadow: none; border: none; }\n .details-grid { grid-template-columns: 1fr; gap: 10px; }\n table th, table td { font-size: 12px; padding: 5px; }\n .header h1 { font-size: 18px; }\n .header p { font-size: 12px; }\n table tr.total td { font-size: 1em; }\n }\n </style>\n </head>\n <body>\n <div class=\"invoice-box\">\n <div class=\"print-hide\" style=\"text-align: right; margin-bottom: 20px;\">\n <button onclick=\"window.print()\" style=\"padding: 8px 12px; font-size: 14px; cursor: pointer; background: #6c757d; color: white; border: none; border-radius: 4px;\">Печать</button>\n <button onclick=\"editReceipt()\" style=\"padding: 8px 12px; font-size: 14px; cursor: pointer; background: #ffc107; color: #000; border: none; border-radius: 4px; margin-left: 10px;\">Изменить накладную</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № dd29a5d5</h1>\n <p>от 03.05.2026 09:01</p>\n </div>\n <table>\n <thead>\n <tr>\n <th style=\"text-align: center; width: 5%;\">№</th>\n <th style=\"text-align: left;\">Наименование</th>\n <th style=\"text-align: right;\">Кол-во</th>\n <th style=\"text-align: right;\">Цена</th>\n <th style=\"text-align: right;\">Сумма</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td style=\"text-align: center;\">1</td>\n <td>Мороз 400 </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">150 000</td>\n \n <td style=\"text-align: right;\">150 000</td>\n </tr>\n </tbody>\n </table>\n <table style=\"margin-top: 20px;\">\n \n <tr class=\"total\">\n <td colspan=\"4\" style=\"text-align: right;\">Итого к оплате:</td>\n <td style=\"text-align: right;\">150 000 ₸</td>\n </tr>\n \n </table>\n \n <div style=\"margin-top: 20px; padding: 10px; border: 2px solid #333; background-color: #fdfdea; border-radius: 5px;\">\n <h4 style=\"margin: 0 0 5px 0; font-size: 16px;\">Примечание к заказу:</h4>\n <p style=\"margin: 0; white-space: pre-wrap; font-size: 14px;\">Оплочено </p>\n </div>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Мухамед 87085076936</p>\n </div>\n \n </div>\n <script>\n function editReceipt() {\n let code = prompt(\"Введите ПИН-код кассира или пароль администратора для изменения накладной:\");\n if (!code) return;\n fetch('/api/auth/universal', {\n method: 'POST',\n headers: {'Content-Type': 'application/json'},\n body: JSON.stringify({code: code})\n })\n .then(r => r.json())\n .then(d => {\n if (d.success) {\n window.location.href = '/?edit_tx=dd29a5d5f0be487a855eb40c65f7c9e1';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
6637
+ },
6638
+ {
6639
+ "id": "2f6fb90bb1384792a8659b200fc1bf46",
6640
+ "timestamp": "2026-05-03T10:08:58.857982+05:00",
6641
+ "type": "sale",
6642
+ "status": "completed",
6643
+ "original_transaction_id": null,
6644
+ "user_id": "492c42b143934be2a9d2639771ed6f01",
6645
+ "user_name": "Разия 87051556765",
6646
+ "kassa_id": "cc2c8d6f01af453084edde7740034332",
6647
+ "kassa_name": "Байсат 36.39",
6648
+ "shift_id": "64b896717daf410d9281f7a2fc4308b9",
6649
+ "items": [
6650
+ {
6651
+ "product_id": null,
6652
+ "variant_id": "custom_1777784769526",
6653
+ "name": "Вытяжка 624-9",
6654
+ "barcode": "CUSTOM",
6655
+ "quantity": 1,
6656
+ "price_at_sale": "65000",
6657
+ "cost_price_at_sale": "0",
6658
+ "discount_per_item": "0",
6659
+ "total": "65000",
6660
+ "is_custom": true
6661
+ },
6662
+ {
6663
+ "product_id": null,
6664
+ "variant_id": "custom_1777784807085",
6665
+ "name": "Газ 9051LS -CC3B",
6666
+ "barcode": "CUSTOM",
6667
+ "quantity": 1,
6668
+ "price_at_sale": "100000",
6669
+ "cost_price_at_sale": "0",
6670
+ "discount_per_item": "0",
6671
+ "total": "100000",
6672
+ "is_custom": true
6673
+ },
6674
+ {
6675
+ "product_id": null,
6676
+ "variant_id": "custom_1777784883692",
6677
+ "name": "Духовка 06 CD ",
6678
+ "barcode": "CUSTOM",
6679
+ "quantity": 1,
6680
+ "price_at_sale": "100000",
6681
+ "cost_price_at_sale": "0",
6682
+ "discount_per_item": "0",
6683
+ "total": "100000",
6684
+ "is_custom": true
6685
+ },
6686
+ {
6687
+ "product_id": "c1aac8c501714119bc1c0445bd94ffa8",
6688
+ "variant_id": "8a87ceaf85a74a5a925f09a58d7993ab",
6689
+ "name": "Микроволновка печь 50К10 Black (Черный)",
6690
+ "barcode": "K10",
6691
+ "quantity": 1,
6692
+ "price_at_sale": "60000",
6693
+ "cost_price_at_sale": "48000",
6694
+ "discount_per_item": "5000",
6695
+ "total": "55000"
6696
+ }
6697
+ ],
6698
+ "total_amount": "320000",
6699
+ "delivery_cost": "0",
6700
+ "note": "8",
6701
+ "payment_method": "cash",
6702
+ "invoice_html": "\n <!DOCTYPE html>\n <html lang=\"ru\">\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Накладная 2f6fb90b</title>\n <style>\n body { font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif; margin: 0; padding: 10px; background-color: #f4f4f4; color: #333; }\n .invoice-box { max-width: 800px; margin: auto; padding: 20px; border: 1px solid #eee; background: white; box-shadow: 0 0 10px rgba(0,0,0,0.15); }\n .header { text-align: center; margin-bottom: 20px; }\n .header h1 { margin: 0; font-size: 22px; font-weight: 600; }\n .header p { margin: 2px 0; font-size: 14px; }\n .details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; font-size: 14px; }\n table { width: 100%; line-height: inherit; text-align: left; border-collapse: collapse; }\n table th { background: #f2f2f2; font-weight: bold; padding: 8px; border-bottom: 2px solid #ddd; }\n table td { padding: 8px; border-bottom: 1px solid #eee; }\n table tr.total td { font-weight: bold; font-size: 1.1em; border-top: 2px solid #ddd; }\n .footer-info { font-size: 14px; margin-top: 20px; }\n .print-hide { display: block; }\n @media print {\n body { margin: 0; padding: 0; background-color: #fff; }\n .invoice-box { box-shadow: none; border: none; margin: 0; padding: 0; }\n .print-hide { display: none; }\n }\n @media screen and (max-width: 600px) {\n body { padding: 0; }\n .invoice-box { padding: 15px; box-shadow: none; border: none; }\n .details-grid { grid-template-columns: 1fr; gap: 10px; }\n table th, table td { font-size: 12px; padding: 5px; }\n .header h1 { font-size: 18px; }\n .header p { font-size: 12px; }\n table tr.total td { font-size: 1em; }\n }\n </style>\n </head>\n <body>\n <div class=\"invoice-box\">\n <div class=\"print-hide\" style=\"text-align: right; margin-bottom: 20px;\">\n <button onclick=\"window.print()\" style=\"padding: 8px 12px; font-size: 14px; cursor: pointer; background: #6c757d; color: white; border: none; border-radius: 4px;\">Печать</button>\n <button onclick=\"editReceipt()\" style=\"padding: 8px 12px; font-size: 14px; cursor: pointer; background: #ffc107; color: #000; border: none; border-radius: 4px; margin-left: 10px;\">Изменить накладную</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № 2f6fb90b</h1>\n <p>от 03.05.2026 10:08</p>\n </div>\n <table>\n <thead>\n <tr>\n <th style=\"text-align: center; width: 5%;\">№</th>\n <th style=\"text-align: left;\">Наименование</th>\n <th style=\"text-align: right;\">Кол-во</th>\n <th style=\"text-align: right;\">Цена</th>\n <th style=\"text-align: right;\">Скидка</th>\n <th style=\"text-align: right;\">Сумма</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td style=\"text-align: center;\">1</td>\n <td>Вытяжка 624-9</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">65 000</td>\n <td style=\"text-align: right;\">0</td>\n <td style=\"text-align: right;\">65 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>Газ 9051LS -CC3B</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">100 000</td>\n <td style=\"text-align: right;\">0</td>\n <td style=\"text-align: right;\">100 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">3</td>\n <td>Духовка 06 CD </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">100 000</td>\n <td style=\"text-align: right;\">0</td>\n <td style=\"text-align: right;\">100 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">4</td>\n <td>Микроволновка печь 50К10 Black (Черный)</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">60 000</td>\n <td style=\"text-align: right;\">5 000</td>\n <td style=\"text-align: right;\">55 000</td>\n </tr>\n </tbody>\n </table>\n <table style=\"margin-top: 20px;\">\n \n <tr class=\"total\">\n <td colspan=\"5\" style=\"text-align: right;\">Итого к оплате:</td>\n <td style=\"text-align: right;\">320 000 ₸</td>\n </tr>\n \n </table>\n \n <div style=\"margin-top: 20px; padding: 10px; border: 2px solid #333; background-color: #fdfdea; border-radius: 5px;\">\n <h4 style=\"margin: 0 0 5px 0; font-size: 16px;\">Примечание к заказу:</h4>\n <p style=\"margin: 0; white-space: pre-wrap; font-size: 14px;\">8</p>\n </div>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Разия 87051556765</p>\n </div>\n \n </div>\n <script>\n function editReceipt() {\n let code = prompt(\"Введите ПИН-код кассира или пароль администратора для изменения накладной:\");\n if (!code) return;\n fetch('/api/auth/universal', {\n method: 'POST',\n headers: {'Content-Type': 'application/json'},\n body: JSON.stringify({code: code})\n })\n .then(r => r.json())\n .then(d => {\n if (d.success) {\n window.location.href = '/?edit_tx=2f6fb90bb1384792a8659b200fc1bf46';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
6703
  }
6704
  ]