Kgshop commited on
Commit
46c361e
·
verified ·
1 Parent(s): 35f3979

Automated backup transactions.json 2026-06-26 16:01:45 +05+0500

Browse files
Files changed (1) hide show
  1. transactions.json +43 -0
transactions.json CHANGED
@@ -39817,5 +39817,48 @@
39817
  "note": "",
39818
  "payment_method": "cash",
39819
  "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>Накладная 0ce51e08</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>Товарная накладная № 0ce51e08</h1>\n <p>от 26.06.2026 15:48</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 185 Белый</td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">140 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">140 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;\">22 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">22 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">3</td>\n <td class=\"name-col\">Ясин 43 UD81M Webos</td>\n <td style=\"text-align: right; white-space: nowrap;\">2</td>\n <td style=\"text-align: right; white-space: nowrap;\">85 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">170 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">4</td>\n <td class=\"name-col\">Midea MK 8079</td>\n <td style=\"text-align: right; white-space: nowrap;\">12000</td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">12 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">5</td>\n <td class=\"name-col\">B tik 2X Эмальчерный</td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">20 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">20 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;\">12005</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;\">364 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;\">Кассир: Ахмед 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=0ce51e0895044897908fd9be737cfc3d';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39820
  }
39821
  ]
 
39817
  "note": "",
39818
  "payment_method": "cash",
39819
  "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>Накладная 0ce51e08</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>Товарная накладная № 0ce51e08</h1>\n <p>от 26.06.2026 15:48</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 185 Белый</td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">140 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">140 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;\">22 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">22 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">3</td>\n <td class=\"name-col\">Ясин 43 UD81M Webos</td>\n <td style=\"text-align: right; white-space: nowrap;\">2</td>\n <td style=\"text-align: right; white-space: nowrap;\">85 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">170 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">4</td>\n <td class=\"name-col\">Midea MK 8079</td>\n <td style=\"text-align: right; white-space: nowrap;\">12000</td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">12 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">5</td>\n <td class=\"name-col\">B tik 2X Эмальчерный</td>\n <td style=\"text-align: right; white-space: nowrap;\">1</td>\n <td style=\"text-align: right; white-space: nowrap;\">20 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">20 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;\">12005</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;\">364 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;\">Кассир: Ахмед 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=0ce51e0895044897908fd9be737cfc3d';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
39820
+ },
39821
+ {
39822
+ "id": "0fb6b9ee373441fabba151169a3158fa",
39823
+ "timestamp": "2026-06-26T16:01:45.377848+05:00",
39824
+ "type": "sale",
39825
+ "status": "completed",
39826
+ "original_transaction_id": null,
39827
+ "user_id": "eea9afb0b3df45bbab4bcb8f7357af56",
39828
+ "user_name": "Ахмед 87073386282",
39829
+ "kassa_id": "cc2c8d6f01af453084edde7740034332",
39830
+ "kassa_name": "Байсат 36.39",
39831
+ "shift_id": "a5420a02ce8d4b378e5571794841ed57",
39832
+ "items": [
39833
+ {
39834
+ "product_id": null,
39835
+ "variant_id": "custom_1782471605167",
39836
+ "name": "Hixelnse 30",
39837
+ "barcode": "CUSTOM",
39838
+ "quantity": 34000,
39839
+ "price_at_sale": "5",
39840
+ "cost_price_at_sale": "0",
39841
+ "discount_per_item": "0",
39842
+ "total": "170000",
39843
+ "is_custom": true
39844
+ },
39845
+ {
39846
+ "product_id": null,
39847
+ "variant_id": "custom_1782471700758",
39848
+ "name": "Hixelnse 50",
39849
+ "barcode": "CUSTOM",
39850
+ "quantity": 3,
39851
+ "price_at_sale": "40000",
39852
+ "cost_price_at_sale": "0",
39853
+ "discount_per_item": "0",
39854
+ "total": "120000",
39855
+ "is_custom": true
39856
+ }
39857
+ ],
39858
+ "total_amount": "290000",
39859
+ "delivery_cost": "0",
39860
+ "note": "",
39861
+ "payment_method": "cash",
39862
+ "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>Накладная 0fb6b9ee</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>Товарная накладная № 0fb6b9ee</h1>\n <p>от 26.06.2026 16:01</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\">Hixelnse 30</td>\n <td style=\"text-align: right; white-space: nowrap;\">34000</td>\n <td style=\"text-align: right; white-space: nowrap;\">5</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">170 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center; white-space: nowrap;\">2</td>\n <td class=\"name-col\">Hixelnse 50</td>\n <td style=\"text-align: right; white-space: nowrap;\">3</td>\n <td style=\"text-align: right; white-space: nowrap;\">40 000</td>\n \n <td style=\"text-align: right; white-space: nowrap;\">120 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;\">34003</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;\">290 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;\">Кассир: Ахмед 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=0fb6b9ee373441fabba151169a3158fa';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
39863
  }
39864
  ]