Automated backup transactions.json 2026-07-19 12:54:06 +05+0500
Browse files- transactions.json +55 -0
transactions.json
CHANGED
|
@@ -58359,5 +58359,60 @@
|
|
| 58359 |
"note": "",
|
| 58360 |
"payment_method": "cash",
|
| 58361 |
"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>Накладная ea6e91ed</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; white-space: nowrap; }\n table th.name-col { white-space: normal; }\n table td { padding: 8px; border-bottom: 1px solid #eee; white-space: nowrap; }\n table td.name-col { white-space: normal; word-wrap: break-word; max-width: 250px; min-width: 150px; }\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; display: flex; justify-content: space-between; align-items: flex-end; }\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>Товарная накладная № ea6e91ed</h1>\n <p>от 19.07.2026 11:51</p>\n </div>\n <table>\n <thead>\n <tr>\n <th style=\"text-align: center; width: 5%; white-space: nowrap;\">№</th>\n <th class=\"name-col\" style=\"text-align: left;\">Наименование</th>\n <th style=\"text-align: right; white-space: nowrap;\">Кол-во</th>\n <th style=\"text-align: right; white-space: nowrap;\">Цена</th>\n <th style=\"text-align: right; white-space: nowrap;\">Сумма</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">1</td>\n <td class=\"name-col\">Холодильник LEX</td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">150 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">150 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">2</td>\n <td class=\"name-col\">Стиральны 7кг saba</td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">90 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">90 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">3</td>\n <td class=\"name-col\">Газ apetito 10e </td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">110 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">110 000</td>\n </tr>\n </tbody>\n </table>\n <table style=\"margin-top: 20px;\">\n \n <tr>\n <td colspan=\"4\" style=\"text-align: right; white-space: nowrap;\">Общее кол-во единиц:</td>\n <td style=\"text-align: right; white-space: nowrap;\">3</td>\n </tr>\n \n <tr class=\"total\">\n <td colspan=\"4\" style=\"text-align: right; white-space: nowrap;\">Итого к оплате:</td>\n <td style=\"text-align: right; white-space: nowrap;\">350 000 ₸</td>\n </tr>\n \n </table>\n \n <div class=\"footer-info\">\n <div>\n <p style=\"margin: 2px 0;\">Способ оплаты: Наличные</p>\n <p style=\"margin: 2px 0;\">Кассир: Шамиль</p>\n </div>\n <div>\n <img src=\"https://huggingface.co/spaces/metastore/tech/resolve/main/1778729143842-019e2483-619b-7600-b6f1-03c567356039.png\" style=\"width: 80px; height: auto;\">\n </div>\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=ea6e91ed838e440d90588264f394e964';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58362 |
}
|
| 58363 |
]
|
|
|
|
| 58359 |
"note": "",
|
| 58360 |
"payment_method": "cash",
|
| 58361 |
"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>Накладная ea6e91ed</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; white-space: nowrap; }\n table th.name-col { white-space: normal; }\n table td { padding: 8px; border-bottom: 1px solid #eee; white-space: nowrap; }\n table td.name-col { white-space: normal; word-wrap: break-word; max-width: 250px; min-width: 150px; }\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; display: flex; justify-content: space-between; align-items: flex-end; }\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>Товарная накладная № ea6e91ed</h1>\n <p>от 19.07.2026 11:51</p>\n </div>\n <table>\n <thead>\n <tr>\n <th style=\"text-align: center; width: 5%; white-space: nowrap;\">№</th>\n <th class=\"name-col\" style=\"text-align: left;\">Наименование</th>\n <th style=\"text-align: right; white-space: nowrap;\">Кол-во</th>\n <th style=\"text-align: right; white-space: nowrap;\">Цена</th>\n <th style=\"text-align: right; white-space: nowrap;\">Сумма</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">1</td>\n <td class=\"name-col\">Холодильник LEX</td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">150 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">150 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">2</td>\n <td class=\"name-col\">Стиральны 7кг saba</td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">90 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">90 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">3</td>\n <td class=\"name-col\">Газ apetito 10e </td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">110 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">110 000</td>\n </tr>\n </tbody>\n </table>\n <table style=\"margin-top: 20px;\">\n \n <tr>\n <td colspan=\"4\" style=\"text-align: right; white-space: nowrap;\">Общее кол-во единиц:</td>\n <td style=\"text-align: right; white-space: nowrap;\">3</td>\n </tr>\n \n <tr class=\"total\">\n <td colspan=\"4\" style=\"text-align: right; white-space: nowrap;\">Итого к оплате:</td>\n <td style=\"text-align: right; white-space: nowrap;\">350 000 ₸</td>\n </tr>\n \n </table>\n \n <div class=\"footer-info\">\n <div>\n <p style=\"margin: 2px 0;\">Способ оплаты: Наличные</p>\n <p style=\"margin: 2px 0;\">Кассир: Шамиль</p>\n </div>\n <div>\n <img src=\"https://huggingface.co/spaces/metastore/tech/resolve/main/1778729143842-019e2483-619b-7600-b6f1-03c567356039.png\" style=\"width: 80px; height: auto;\">\n </div>\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=ea6e91ed838e440d90588264f394e964';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
|
| 58362 |
+
},
|
| 58363 |
+
{
|
| 58364 |
+
"id": "e6b4af52b59743c2b6f05c43c0407871",
|
| 58365 |
+
"timestamp": "2026-07-19T12:54:06.767611+05:00",
|
| 58366 |
+
"type": "sale",
|
| 58367 |
+
"status": "completed",
|
| 58368 |
+
"original_transaction_id": null,
|
| 58369 |
+
"user_id": "2a9a729692fd4fd4aeb4161a2a4470e2",
|
| 58370 |
+
"user_name": "Шамиль",
|
| 58371 |
+
"kassa_id": "ef4810fff11c48c498f864542829f0bd",
|
| 58372 |
+
"kassa_name": "Склад",
|
| 58373 |
+
"shift_id": "f6ef8812629e447982ddd2bd6a725f44",
|
| 58374 |
+
"items": [
|
| 58375 |
+
{
|
| 58376 |
+
"product_id": null,
|
| 58377 |
+
"variant_id": "custom_1784447529811",
|
| 58378 |
+
"name": "Холодильник конка белой ",
|
| 58379 |
+
"barcode": "CUSTOM",
|
| 58380 |
+
"quantity": 1,
|
| 58381 |
+
"price_at_sale": "195000",
|
| 58382 |
+
"cost_price_at_sale": "0",
|
| 58383 |
+
"discount_per_item": "0",
|
| 58384 |
+
"total": "195000",
|
| 58385 |
+
"is_custom": true
|
| 58386 |
+
},
|
| 58387 |
+
{
|
| 58388 |
+
"product_id": null,
|
| 58389 |
+
"variant_id": "custom_1784447581696",
|
| 58390 |
+
"name": "Газ плита Симфер 60см бел ",
|
| 58391 |
+
"barcode": "CUSTOM",
|
| 58392 |
+
"quantity": 1,
|
| 58393 |
+
"price_at_sale": "160000",
|
| 58394 |
+
"cost_price_at_sale": "0",
|
| 58395 |
+
"discount_per_item": "0",
|
| 58396 |
+
"total": "160000",
|
| 58397 |
+
"is_custom": true
|
| 58398 |
+
},
|
| 58399 |
+
{
|
| 58400 |
+
"product_id": null,
|
| 58401 |
+
"variant_id": "custom_1784447641182",
|
| 58402 |
+
"name": "Стиралка LG 6kg",
|
| 58403 |
+
"barcode": "CUSTOM",
|
| 58404 |
+
"quantity": 1,
|
| 58405 |
+
"price_at_sale": "130000",
|
| 58406 |
+
"cost_price_at_sale": "0",
|
| 58407 |
+
"discount_per_item": "0",
|
| 58408 |
+
"total": "130000",
|
| 58409 |
+
"is_custom": true
|
| 58410 |
+
}
|
| 58411 |
+
],
|
| 58412 |
+
"total_amount": "485000",
|
| 58413 |
+
"delivery_cost": "0",
|
| 58414 |
+
"note": "",
|
| 58415 |
+
"payment_method": "cash",
|
| 58416 |
+
"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>Накладная e6b4af52</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; white-space: nowrap; }\n table th.name-col { white-space: normal; }\n table td { padding: 8px; border-bottom: 1px solid #eee; white-space: nowrap; }\n table td.name-col { white-space: normal; word-wrap: break-word; max-width: 250px; min-width: 150px; }\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; display: flex; justify-content: space-between; align-items: flex-end; }\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>Товарная накладная № e6b4af52</h1>\n <p>от 19.07.2026 12:54</p>\n </div>\n <table>\n <thead>\n <tr>\n <th style=\"text-align: center; width: 5%; white-space: nowrap;\">№</th>\n <th class=\"name-col\" style=\"text-align: left;\">Наименование</th>\n <th style=\"text-align: right; white-space: nowrap;\">Кол-во</th>\n <th style=\"text-align: right; white-space: nowrap;\">Цена</th>\n <th style=\"text-align: right; white-space: nowrap;\">Сумма</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">1</td>\n <td class=\"name-col\">Холодильник конка белой </td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">195 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">195 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">2</td>\n <td class=\"name-col\">Газ плита Симфер 60см бел </td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">160 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">160 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">3</td>\n <td class=\"name-col\">Стиралка LG 6kg</td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">130 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">130 000</td>\n </tr>\n </tbody>\n </table>\n <table style=\"margin-top: 20px;\">\n \n <tr>\n <td colspan=\"4\" style=\"text-align: right; white-space: nowrap;\">Общее кол-во единиц:</td>\n <td style=\"text-align: right; white-space: nowrap;\">3</td>\n </tr>\n \n <tr class=\"total\">\n <td colspan=\"4\" style=\"text-align: right; white-space: nowrap;\">Итого к оплате:</td>\n <td style=\"text-align: right; white-space: nowrap;\">485 000 ₸</td>\n </tr>\n \n </table>\n \n <div class=\"footer-info\">\n <div>\n <p style=\"margin: 2px 0;\">Способ оплаты: Наличные</p>\n <p style=\"margin: 2px 0;\">Кассир: Шамиль</p>\n </div>\n <div>\n <img src=\"https://huggingface.co/spaces/metastore/tech/resolve/main/1778729143842-019e2483-619b-7600-b6f1-03c567356039.png\" style=\"width: 80px; height: auto;\">\n </div>\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=e6b4af52b59743c2b6f05c43c0407871';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
|
| 58417 |
}
|
| 58418 |
]
|