Automated backup transactions.json 2026-07-19 10:50:55 +05+0500
Browse files- transactions.json +151 -0
transactions.json
CHANGED
|
@@ -57912,5 +57912,156 @@
|
|
| 57912 |
"note": "",
|
| 57913 |
"payment_method": "cash",
|
| 57914 |
"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>Накладная 628ef80c</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>Товарная накладная № 628ef80c</h1>\n <p>от 19.07.2026 10:47</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\">Алмаком 07</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 \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">2</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;\">4 500</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">4 500</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;\">2</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;\">114 500 ₸</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;\">Кассир: Ахмед 87073386282</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=628ef80c77ee4fde9057fea3242dcf6e';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57915 |
}
|
| 57916 |
]
|
|
|
|
| 57912 |
"note": "",
|
| 57913 |
"payment_method": "cash",
|
| 57914 |
"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>Накладная 628ef80c</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>Товарная накладная № 628ef80c</h1>\n <p>от 19.07.2026 10:47</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\">Алмаком 07</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 \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">2</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;\">4 500</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">4 500</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;\">2</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;\">114 500 ₸</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;\">Кассир: Ахмед 87073386282</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=628ef80c77ee4fde9057fea3242dcf6e';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
|
| 57915 |
+
},
|
| 57916 |
+
{
|
| 57917 |
+
"id": "2fd14132f46847f98ef78609803e673a",
|
| 57918 |
+
"timestamp": "2026-07-19T10:50:54.926280+05:00",
|
| 57919 |
+
"type": "sale",
|
| 57920 |
+
"status": "completed",
|
| 57921 |
+
"original_transaction_id": null,
|
| 57922 |
+
"user_id": "492c42b143934be2a9d2639771ed6f01",
|
| 57923 |
+
"user_name": "Разия 87051556765",
|
| 57924 |
+
"kassa_id": "cc2c8d6f01af453084edde7740034332",
|
| 57925 |
+
"kassa_name": "Байсат 36.39",
|
| 57926 |
+
"shift_id": "64b896717daf410d9281f7a2fc4308b9",
|
| 57927 |
+
"items": [
|
| 57928 |
+
{
|
| 57929 |
+
"product_id": null,
|
| 57930 |
+
"variant_id": "custom_1784439674405",
|
| 57931 |
+
"name": "Чопер 245 ",
|
| 57932 |
+
"barcode": "CUSTOM",
|
| 57933 |
+
"quantity": 1,
|
| 57934 |
+
"price_at_sale": "6000",
|
| 57935 |
+
"cost_price_at_sale": "0",
|
| 57936 |
+
"discount_per_item": "0",
|
| 57937 |
+
"total": "6000",
|
| 57938 |
+
"is_custom": true
|
| 57939 |
+
},
|
| 57940 |
+
{
|
| 57941 |
+
"product_id": null,
|
| 57942 |
+
"variant_id": "custom_1784439692905",
|
| 57943 |
+
"name": "Блендер 5905",
|
| 57944 |
+
"barcode": "CUSTOM",
|
| 57945 |
+
"quantity": 2,
|
| 57946 |
+
"price_at_sale": "10000",
|
| 57947 |
+
"cost_price_at_sale": "0",
|
| 57948 |
+
"discount_per_item": "0",
|
| 57949 |
+
"total": "20000",
|
| 57950 |
+
"is_custom": true
|
| 57951 |
+
},
|
| 57952 |
+
{
|
| 57953 |
+
"product_id": null,
|
| 57954 |
+
"variant_id": "custom_1784439771938",
|
| 57955 |
+
"name": "Утюг 7710",
|
| 57956 |
+
"barcode": "CUSTOM",
|
| 57957 |
+
"quantity": 1,
|
| 57958 |
+
"price_at_sale": "4500",
|
| 57959 |
+
"cost_price_at_sale": "0",
|
| 57960 |
+
"discount_per_item": "0",
|
| 57961 |
+
"total": "4500",
|
| 57962 |
+
"is_custom": true
|
| 57963 |
+
},
|
| 57964 |
+
{
|
| 57965 |
+
"product_id": null,
|
| 57966 |
+
"variant_id": "custom_1784439918891",
|
| 57967 |
+
"name": "Утюг витек ",
|
| 57968 |
+
"barcode": "CUSTOM",
|
| 57969 |
+
"quantity": 1,
|
| 57970 |
+
"price_at_sale": "6000",
|
| 57971 |
+
"cost_price_at_sale": "0",
|
| 57972 |
+
"discount_per_item": "0",
|
| 57973 |
+
"total": "6000",
|
| 57974 |
+
"is_custom": true
|
| 57975 |
+
},
|
| 57976 |
+
{
|
| 57977 |
+
"product_id": null,
|
| 57978 |
+
"variant_id": "custom_1784439949856",
|
| 57979 |
+
"name": "Блендер 5100",
|
| 57980 |
+
"barcode": "CUSTOM",
|
| 57981 |
+
"quantity": 1,
|
| 57982 |
+
"price_at_sale": "5000",
|
| 57983 |
+
"cost_price_at_sale": "0",
|
| 57984 |
+
"discount_per_item": "0",
|
| 57985 |
+
"total": "5000",
|
| 57986 |
+
"is_custom": true
|
| 57987 |
+
},
|
| 57988 |
+
{
|
| 57989 |
+
"product_id": null,
|
| 57990 |
+
"variant_id": "custom_1784439970729",
|
| 57991 |
+
"name": "Миксер 1630 ",
|
| 57992 |
+
"barcode": "CUSTOM",
|
| 57993 |
+
"quantity": 2,
|
| 57994 |
+
"price_at_sale": "4500",
|
| 57995 |
+
"cost_price_at_sale": "0",
|
| 57996 |
+
"discount_per_item": "0",
|
| 57997 |
+
"total": "9000",
|
| 57998 |
+
"is_custom": true
|
| 57999 |
+
},
|
| 58000 |
+
{
|
| 58001 |
+
"product_id": null,
|
| 58002 |
+
"variant_id": "custom_1784439990917",
|
| 58003 |
+
"name": "Утюг 233",
|
| 58004 |
+
"barcode": "CUSTOM",
|
| 58005 |
+
"quantity": 1,
|
| 58006 |
+
"price_at_sale": "7000",
|
| 58007 |
+
"cost_price_at_sale": "0",
|
| 58008 |
+
"discount_per_item": "0",
|
| 58009 |
+
"total": "7000",
|
| 58010 |
+
"is_custom": true
|
| 58011 |
+
},
|
| 58012 |
+
{
|
| 58013 |
+
"product_id": null,
|
| 58014 |
+
"variant_id": "custom_1784440002718",
|
| 58015 |
+
"name": "Мах 2 ",
|
| 58016 |
+
"barcode": "CUSTOM",
|
| 58017 |
+
"quantity": 1,
|
| 58018 |
+
"price_at_sale": "10500",
|
| 58019 |
+
"cost_price_at_sale": "0",
|
| 58020 |
+
"discount_per_item": "0",
|
| 58021 |
+
"total": "10500",
|
| 58022 |
+
"is_custom": true
|
| 58023 |
+
},
|
| 58024 |
+
{
|
| 58025 |
+
"product_id": null,
|
| 58026 |
+
"variant_id": "custom_1784440044559",
|
| 58027 |
+
"name": "Миксер 6629 ",
|
| 58028 |
+
"barcode": "CUSTOM",
|
| 58029 |
+
"quantity": 1,
|
| 58030 |
+
"price_at_sale": "5000",
|
| 58031 |
+
"cost_price_at_sale": "0",
|
| 58032 |
+
"discount_per_item": "0",
|
| 58033 |
+
"total": "5000",
|
| 58034 |
+
"is_custom": true
|
| 58035 |
+
},
|
| 58036 |
+
{
|
| 58037 |
+
"product_id": null,
|
| 58038 |
+
"variant_id": "custom_1784440086114",
|
| 58039 |
+
"name": "Утюг 008",
|
| 58040 |
+
"barcode": "CUSTOM",
|
| 58041 |
+
"quantity": 1,
|
| 58042 |
+
"price_at_sale": "13500",
|
| 58043 |
+
"cost_price_at_sale": "0",
|
| 58044 |
+
"discount_per_item": "0",
|
| 58045 |
+
"total": "13500",
|
| 58046 |
+
"is_custom": true
|
| 58047 |
+
},
|
| 58048 |
+
{
|
| 58049 |
+
"product_id": null,
|
| 58050 |
+
"variant_id": "custom_1784440216178",
|
| 58051 |
+
"name": "Мультиварка 16 ",
|
| 58052 |
+
"barcode": "CUSTOM",
|
| 58053 |
+
"quantity": 1,
|
| 58054 |
+
"price_at_sale": "9000",
|
| 58055 |
+
"cost_price_at_sale": "0",
|
| 58056 |
+
"discount_per_item": "0",
|
| 58057 |
+
"total": "9000",
|
| 58058 |
+
"is_custom": true
|
| 58059 |
+
}
|
| 58060 |
+
],
|
| 58061 |
+
"total_amount": "95500",
|
| 58062 |
+
"delivery_cost": "0",
|
| 58063 |
+
"note": "",
|
| 58064 |
+
"payment_method": "cash",
|
| 58065 |
+
"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>Накладная 2fd14132</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>Товарная накладная № 2fd14132</h1>\n <p>от 19.07.2026 10:50</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\">Чопер 245 </td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">6 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">6 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">2</td>\n <td class=\"name-col\">Блендер 5905</td>\n <td style=\"text-align: right; white-space: nowrap;\">2</td>\n <td style=\"text-align: right; white-space: nowrap;\">10 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">20 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">3</td>\n <td class=\"name-col\">Утюг 7710</td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">4 500</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">4 500</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">4</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;\">6 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">6 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">5</td>\n <td class=\"name-col\">Блендер 5100</td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">5 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">5 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">6</td>\n <td class=\"name-col\">Миксер 1630 </td>\n <td style=\"text-align: right; white-space: nowrap;\">2</td>\n <td style=\"text-align: right; white-space: nowrap;\">4 500</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">9 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">7</td>\n <td class=\"name-col\">Утюг 233</td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">7 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">7 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">8</td>\n <td class=\"name-col\">Мах 2 </td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">10 500</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">10 500</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">9</td>\n <td class=\"name-col\">Миксер 6629 </td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">5 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">5 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">10</td>\n <td class=\"name-col\">Утюг 008</td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">13 500</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">13 500</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">11</td>\n <td class=\"name-col\">Мультиварка 16 </td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">9 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">9 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;\">13</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;\">95 500 ₸</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;\">Кассир: Разия 87051556765</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=2fd14132f46847f98ef78609803e673a';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
|
| 58066 |
}
|
| 58067 |
]
|