Automated backup transactions.json 2026-05-02 13:13:40 +05+0500
Browse files- transactions.json +67 -0
transactions.json
CHANGED
|
@@ -6389,5 +6389,72 @@
|
|
| 6389 |
}
|
| 6390 |
],
|
| 6391 |
"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>Накладная e0833112</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>Товарная накладная № e0833112</h1>\n <p>от 02.05.2026 12:10</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>LG НS5W</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">190 000</td>\n \n <td style=\"text-align: right;\">190 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>15 CD </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">175 000</td>\n \n <td style=\"text-align: right;\">175 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">3</td>\n <td>55G1 BL</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">80 000</td>\n \n <td style=\"text-align: right;\">80 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">4</td>\n <td>Алмаком 09</td>\n <td style=\"text-align: right;\">2</td>\n <td style=\"text-align: right;\">135 000</td>\n \n <td style=\"text-align: right;\">270 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;\">715 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;\">Розабакиева дом 217 б кв 74 87478298039 87473411841</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=e0833112feaa43e295b2451802a28168';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6392 |
}
|
| 6393 |
]
|
|
|
|
| 6389 |
}
|
| 6390 |
],
|
| 6391 |
"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>Накладная e0833112</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>Товарная накладная № e0833112</h1>\n <p>от 02.05.2026 12:10</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>LG НS5W</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">190 000</td>\n \n <td style=\"text-align: right;\">190 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>15 CD </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">175 000</td>\n \n <td style=\"text-align: right;\">175 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">3</td>\n <td>55G1 BL</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">80 000</td>\n \n <td style=\"text-align: right;\">80 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">4</td>\n <td>Алмаком 09</td>\n <td style=\"text-align: right;\">2</td>\n <td style=\"text-align: right;\">135 000</td>\n \n <td style=\"text-align: right;\">270 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;\">715 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;\">Розабакиева дом 217 б кв 74 87478298039 87473411841</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=e0833112feaa43e295b2451802a28168';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
|
| 6392 |
+
},
|
| 6393 |
+
{
|
| 6394 |
+
"id": "6500abd6395549319e8d956f8f86160f",
|
| 6395 |
+
"timestamp": "2026-05-02T13:13:40.031015+05:00",
|
| 6396 |
+
"type": "sale",
|
| 6397 |
+
"status": "completed",
|
| 6398 |
+
"original_transaction_id": null,
|
| 6399 |
+
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
|
| 6400 |
+
"user_name": "Мухамед 87085076936",
|
| 6401 |
+
"kassa_id": "cc2c8d6f01af453084edde7740034332",
|
| 6402 |
+
"kassa_name": "Байсат 36.39",
|
| 6403 |
+
"shift_id": "902d835aa6f5451ca389bf0df29273db",
|
| 6404 |
+
"items": [
|
| 6405 |
+
{
|
| 6406 |
+
"product_id": null,
|
| 6407 |
+
"variant_id": "custom_1777709543484",
|
| 6408 |
+
"name": "ТВ 43 ",
|
| 6409 |
+
"barcode": "CUSTOM",
|
| 6410 |
+
"quantity": 1,
|
| 6411 |
+
"price_at_sale": "85000",
|
| 6412 |
+
"cost_price_at_sale": "0",
|
| 6413 |
+
"discount_per_item": "0",
|
| 6414 |
+
"total": "85000",
|
| 6415 |
+
"is_custom": true
|
| 6416 |
+
},
|
| 6417 |
+
{
|
| 6418 |
+
"product_id": null,
|
| 6419 |
+
"variant_id": "custom_1777709556649",
|
| 6420 |
+
"name": "Утюг",
|
| 6421 |
+
"barcode": "CUSTOM",
|
| 6422 |
+
"quantity": 1,
|
| 6423 |
+
"price_at_sale": "6000",
|
| 6424 |
+
"cost_price_at_sale": "0",
|
| 6425 |
+
"discount_per_item": "0",
|
| 6426 |
+
"total": "6000",
|
| 6427 |
+
"is_custom": true
|
| 6428 |
+
},
|
| 6429 |
+
{
|
| 6430 |
+
"product_id": null,
|
| 6431 |
+
"variant_id": "custom_1777709569886",
|
| 6432 |
+
"name": "Чайник ",
|
| 6433 |
+
"barcode": "CUSTOM",
|
| 6434 |
+
"quantity": 1,
|
| 6435 |
+
"price_at_sale": "2000",
|
| 6436 |
+
"cost_price_at_sale": "0",
|
| 6437 |
+
"discount_per_item": "0",
|
| 6438 |
+
"total": "2000",
|
| 6439 |
+
"is_custom": true
|
| 6440 |
+
},
|
| 6441 |
+
{
|
| 6442 |
+
"product_id": null,
|
| 6443 |
+
"variant_id": "custom_1777709585932",
|
| 6444 |
+
"name": "LG 662",
|
| 6445 |
+
"barcode": "CUSTOM",
|
| 6446 |
+
"quantity": 1,
|
| 6447 |
+
"price_at_sale": "35000",
|
| 6448 |
+
"cost_price_at_sale": "0",
|
| 6449 |
+
"discount_per_item": "0",
|
| 6450 |
+
"total": "35000",
|
| 6451 |
+
"is_custom": true
|
| 6452 |
+
}
|
| 6453 |
+
],
|
| 6454 |
+
"total_amount": "128000",
|
| 6455 |
+
"delivery_cost": "0",
|
| 6456 |
+
"note": "Оплочено ",
|
| 6457 |
+
"payment_method": "cash",
|
| 6458 |
+
"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>Накладная 6500abd6</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>Товарная накладная № 6500abd6</h1>\n <p>от 02.05.2026 13:13</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>ТВ 43 </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">85 000</td>\n \n <td style=\"text-align: right;\">85 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>Утюг</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">6 000</td>\n \n <td style=\"text-align: right;\">6 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">3</td>\n <td>Чайник </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">2 000</td>\n \n <td style=\"text-align: right;\">2 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">4</td>\n <td>LG 662</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">35 000</td>\n \n <td style=\"text-align: right;\">35 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;\">128 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=6500abd6395549319e8d956f8f86160f';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
|
| 6459 |
}
|
| 6460 |
]
|