Kgshop commited on
Commit
f1b03bc
·
verified ·
1 Parent(s): d5e43de

Automated backup transactions.json 2026-04-12 15:46:37 +05+0500

Browse files
Files changed (1) hide show
  1. transactions.json +30 -0
transactions.json CHANGED
@@ -922,5 +922,35 @@
922
  "note": "",
923
  "payment_method": "cash",
924
  "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>Накладная f20cbc2c</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>Товарная накладная № f20cbc2c</h1>\n <p>от 12.04.2026 11:44</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>Авангард 8кг Biw</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">120 000</td>\n \n <td style=\"text-align: right;\">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;\">Подытог:</td>\n <td style=\"text-align: right;\">120 000 ₸</td>\n </tr>\n <tr>\n <td colspan=\"4\" style=\"text-align: right;\">Доставка:</td>\n <td style=\"text-align: right;\">5 000 ₸</td>\n </tr>\n \n <tr class=\"total\">\n <td colspan=\"4\" style=\"text-align: right;\">Итого к оплате:</td>\n <td style=\"text-align: right;\">125 000 ₸</td>\n </tr>\n \n </table>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Ахмед</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=f20cbc2cece94a48a4976769d20faeac';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
925
  }
926
  ]
 
922
  "note": "",
923
  "payment_method": "cash",
924
  "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>Накладная f20cbc2c</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>Товарная накладная № f20cbc2c</h1>\n <p>от 12.04.2026 11:44</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>Авангард 8кг Biw</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">120 000</td>\n \n <td style=\"text-align: right;\">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;\">Подытог:</td>\n <td style=\"text-align: right;\">120 000 ₸</td>\n </tr>\n <tr>\n <td colspan=\"4\" style=\"text-align: right;\">Доставка:</td>\n <td style=\"text-align: right;\">5 000 ₸</td>\n </tr>\n \n <tr class=\"total\">\n <td colspan=\"4\" style=\"text-align: right;\">Итого к оплате:</td>\n <td style=\"text-align: right;\">125 000 ₸</td>\n </tr>\n \n </table>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Ахмед</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=f20cbc2cece94a48a4976769d20faeac';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
925
+ },
926
+ {
927
+ "id": "f163f7f808ae468680997936a5930b61",
928
+ "timestamp": "2026-04-12T15:46:37.089161+05:00",
929
+ "type": "sale",
930
+ "status": "completed",
931
+ "original_transaction_id": null,
932
+ "user_id": "eea9afb0b3df45bbab4bcb8f7357af56",
933
+ "user_name": "Ахмед",
934
+ "kassa_id": "cc2c8d6f01af453084edde7740034332",
935
+ "kassa_name": "Байсат 36.39",
936
+ "shift_id": "a5420a02ce8d4b378e5571794841ed57",
937
+ "items": [
938
+ {
939
+ "product_id": "2d2c02b61c0c4da78926ba092aea3e27",
940
+ "variant_id": "39334cefd0ad4d3587817c7ee32ed231",
941
+ "name": "Ясин YSH-18GDK (Белый)",
942
+ "barcode": "YSH-18GDK",
943
+ "quantity": 1,
944
+ "price_at_sale": "165000",
945
+ "cost_price_at_sale": "145028",
946
+ "discount_per_item": "0",
947
+ "total": "165000"
948
+ }
949
+ ],
950
+ "total_amount": "165000",
951
+ "delivery_cost": "0",
952
+ "note": "",
953
+ "payment_method": "cash",
954
+ "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>Накладная f163f7f8</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>Товарная накладная № f163f7f8</h1>\n <p>от 12.04.2026 15:46</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>Ясин YSH-18GDK (Белый)</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">165 000</td>\n \n <td style=\"text-align: right;\">165 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;\">165 000 ₸</td>\n </tr>\n \n </table>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Ахмед</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=f163f7f808ae468680997936a5930b61';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
955
  }
956
  ]