techbase / transactions.json
Kgshop's picture
Automated backup transactions.json 2026-04-19 12:48:24 +05+0500
5300884 verified
[
{
"id": "f9f95459aaf849e0b604d773a87ac43d",
"timestamp": "2026-04-10T07:58:47.579369+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "eea9afb0b3df45bbab4bcb8f7357af56",
"user_name": "Ахмед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "a5420a02ce8d4b378e5571794841ed57",
"items": [
{
"product_id": "fad5c4104da54f3c81f3c6648318aa76",
"variant_id": "107bf7eab27548d283f3ff2851b83fcd",
"name": "Авангард 252 (Серый)",
"barcode": "ARF-252 SS",
"quantity": 1,
"price_at_sale": "150.000",
"cost_price_at_sale": "129.000",
"discount_per_item": "0",
"total": "150.000"
},
{
"product_id": "fd2ae15eb67043b4a66bc3e38c320b7e",
"variant_id": "97ba4380a7684e53b91ad4e85cdcb8d0",
"name": "Авангард 360 витрины холод (Черный)",
"barcode": "\"AVSC-360\" Black",
"quantity": 1,
"price_at_sale": "175000",
"cost_price_at_sale": "149.700",
"discount_per_item": "3000",
"total": "172000"
}
],
"total_amount": "177150.000",
"delivery_cost": "5000",
"note": "Сегодня до 3 часов ",
"payment_method": "cash",
"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>Накладная f9f95459</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;\">Печать</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № f9f95459</h1>\n <p>от 10.04.2026 07:58</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 <th style=\"text-align: right;\">Сумма</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td style=\"text-align: center;\">1</td>\n <td>Авангард 252 (Серый)</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">150,00</td>\n <td style=\"text-align: right;\">0,00</td>\n <td style=\"text-align: right;\">150,00</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>Авангард 360 витрины холод (Черный)</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">175 000,00</td>\n <td style=\"text-align: right;\">3 000,00</td>\n <td style=\"text-align: right;\">172 000,00</td>\n </tr>\n </tbody>\n </table>\n <table style=\"margin-top: 20px;\">\n \n <tr>\n <td colspan=\"5\" style=\"text-align: right;\">Подытог:</td>\n <td style=\"text-align: right;\">172 150,00 ₸</td>\n </tr>\n <tr>\n <td colspan=\"5\" style=\"text-align: right;\">Доставка:</td>\n <td style=\"text-align: right;\">5 000,00 ₸</td>\n </tr>\n \n <tr class=\"total\">\n <td colspan=\"5\" style=\"text-align: right;\">Итого к оплате:</td>\n <td style=\"text-align: right;\">177 150,00 ₸</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;\">Сегодня до 3 часов </p>\n </div>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Ахмед</p>\n </div>\n </div>\n </body>\n </html>\n "
},
{
"id": "2f8cf669d50c4ab08b3be840d77403e9",
"timestamp": "2026-04-10T08:46:38.586668+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "4d5d7ded5b9143f5a3f90744240e928e",
"user_name": "Шамиль",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "032d03ea26bf4887a28ae4f7f7f2b02c",
"items": [
{
"product_id": "fad5c4104da54f3c81f3c6648318aa76",
"variant_id": "107bf7eab27548d283f3ff2851b83fcd",
"name": "Авангард 252 (Серый)",
"barcode": "ARF-252 SS",
"quantity": 1,
"price_at_sale": "150000",
"cost_price_at_sale": "129000",
"discount_per_item": "50000",
"total": "100000"
}
],
"total_amount": "105000.00",
"delivery_cost": "5000",
"note": "Сегодня ",
"payment_method": "cash",
"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>Накладная 2f8cf669</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;\">Печать</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № 2f8cf669</h1>\n <p>от 10.04.2026 08: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 <th style=\"text-align: right;\">Сумма</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td style=\"text-align: center;\">1</td>\n <td>Авангард 252 (Серый)</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">150 000,00</td>\n <td style=\"text-align: right;\">50 000,00</td>\n <td style=\"text-align: right;\">100 000,00</td>\n </tr>\n </tbody>\n </table>\n <table style=\"margin-top: 20px;\">\n \n <tr>\n <td colspan=\"5\" style=\"text-align: right;\">Подытог:</td>\n <td style=\"text-align: right;\">100 000,00 ₸</td>\n </tr>\n <tr>\n <td colspan=\"5\" style=\"text-align: right;\">Доставка:</td>\n <td style=\"text-align: right;\">5 000,00 ₸</td>\n </tr>\n \n <tr class=\"total\">\n <td colspan=\"5\" style=\"text-align: right;\">Итого к оплате:</td>\n <td style=\"text-align: right;\">105 000,00 ₸</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>Кассир: Шамиль</p>\n </div>\n </div>\n </body>\n </html>\n "
},
{
"id": "573c5e23e59342539c73738f049a4466",
"timestamp": "2026-04-10T08:52:26.447406+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "eea9afb0b3df45bbab4bcb8f7357af56",
"user_name": "Ахмед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "a5420a02ce8d4b378e5571794841ed57",
"items": [
{
"product_id": "fad5c4104da54f3c81f3c6648318aa76",
"variant_id": "107bf7eab27548d283f3ff2851b83fcd",
"name": "Авангард 252 (Серый)",
"barcode": "ARF-252 SS",
"quantity": 1,
"price_at_sale": "150000",
"cost_price_at_sale": "129000",
"discount_per_item": "0",
"total": "150000"
},
{
"product_id": "1cadce5f34894d8ebd58edd5b16dd489",
"variant_id": "7bc3b223d55b420a8685b7194cb8a060",
"name": "Конка 344 (Белый)",
"barcode": "КRL-344W",
"quantity": 1,
"price_at_sale": "200.000",
"cost_price_at_sale": "185.993",
"discount_per_item": "0",
"total": "200.000"
}
],
"total_amount": "150200.000",
"delivery_cost": "0",
"note": "",
"payment_method": "cash",
"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>Накладная 573c5e23</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;\">Печать</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № 573c5e23</h1>\n <p>от 10.04.2026 08:52</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>Авангард 252 (Серый)</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">150 000,00</td>\n \n <td style=\"text-align: right;\">150 000,00</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>Конка 344 (Белый)</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">200,00</td>\n \n <td style=\"text-align: right;\">200,00</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;\">150 200,00 ₸</td>\n </tr>\n \n </table>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Ахмед</p>\n </div>\n </div>\n </body>\n </html>\n "
},
{
"id": "ca50ce71a0da48ada990676ec64c1964",
"timestamp": "2026-04-10T09:02:33.345776+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "0e7eee9235cb4a73b3920d9b8f8258bf",
"user_name": "Исмаил",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "c6cf424abe0a45cd91b2be6b84a7ea22",
"items": [
{
"product_id": null,
"variant_id": "custom_1775793699896",
"name": "Вытяжка 4160 BB",
"barcode": "CUSTOM",
"quantity": 2,
"price_at_sale": "38000",
"cost_price_at_sale": "0.00",
"discount_per_item": "0.00",
"total": "76000",
"is_custom": true
}
],
"total_amount": "80000.00",
"delivery_cost": "4000",
"note": "",
"payment_method": "cash",
"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>Накладная ca50ce71</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;\">Печать</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № ca50ce71</h1>\n <p>от 10.04.2026 09:02</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>Вытяжка 4160 BB</td>\n <td style=\"text-align: right;\">2</td>\n <td style=\"text-align: right;\">38 000,00</td>\n \n <td style=\"text-align: right;\">76 000,00</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;\">76 000,00 ₸</td>\n </tr>\n <tr>\n <td colspan=\"4\" style=\"text-align: right;\">Доставка:</td>\n <td style=\"text-align: right;\">4 000,00 ₸</td>\n </tr>\n \n <tr class=\"total\">\n <td colspan=\"4\" style=\"text-align: right;\">Итого к оплате:</td>\n <td style=\"text-align: right;\">80 000,00 ₸</td>\n </tr>\n \n </table>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Исмаил</p>\n </div>\n </div>\n </body>\n </html>\n "
},
{
"id": "4cddcdc9f7224c3f87f41b1142589f1a",
"timestamp": "2026-04-10T09:09:20.901523+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "eea9afb0b3df45bbab4bcb8f7357af56",
"user_name": "Ахмед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "a5420a02ce8d4b378e5571794841ed57",
"items": [
{
"product_id": "5acb2a35b10d4835b8fe1fd38033d53c",
"variant_id": "bbdc7a24a4ea485a97cff0b6d2fabdd0",
"name": "Холодильник Blesk (Бежевый)",
"barcode": "BL-400FXNY",
"quantity": 1,
"price_at_sale": "185.000",
"cost_price_at_sale": "160.000",
"discount_per_item": "0",
"total": "185.000"
}
],
"total_amount": "185.000",
"delivery_cost": "0",
"note": "",
"payment_method": "cash",
"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>Накладная 4cddcdc9</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;\">Печать</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № 4cddcdc9</h1>\n <p>от 10.04.2026 09:09</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>Холодильник Blesk (Бежевый)</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">185,00</td>\n \n <td style=\"text-align: right;\">185,00</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;\">185,00 ₸</td>\n </tr>\n \n </table>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Ахмед</p>\n </div>\n </div>\n </body>\n </html>\n "
},
{
"id": "9122d3729cfe468db55816a70102c762",
"timestamp": "2026-04-10T09:32:25.265785+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "f7aabb2152db485292d000aebaff257d",
"user_name": "Арафат",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "2963051221cf4f3989bdc1e4c54eefe2",
"items": [
{
"product_id": "1ddd20c010cd4ddab9e6ccc416b39879",
"variant_id": "8d7763e9a32c457da47ba360f3d82735",
"name": "Авангард 252 (Белый)",
"barcode": "ARF-252W",
"quantity": 1,
"price_at_sale": "140000",
"cost_price_at_sale": "125000",
"discount_per_item": "0",
"total": "140000"
}
],
"total_amount": "140000.00",
"delivery_cost": "0",
"note": "",
"payment_method": "cash",
"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>Накладная 9122d372</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;\">Печать</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № 9122d372</h1>\n <p>от 10.04.2026 09:32</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>Авангард 252 (Белый)</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">140 000,00</td>\n \n <td style=\"text-align: right;\">140 000,00</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;\">140 000,00 ₸</td>\n </tr>\n \n </table>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Арафат</p>\n </div>\n </div>\n </body>\n </html>\n "
},
{
"id": "17f73093cb914619b45b124d4381f282",
"timestamp": "2026-04-10T14:26:37.626961+05:00",
"type": "sale",
"status": "partially_returned",
"original_transaction_id": null,
"user_id": "492c42b143934be2a9d2639771ed6f01",
"user_name": "Разия",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "64b896717daf410d9281f7a2fc4308b9",
"items": [
{
"product_id": "1ddd20c010cd4ddab9e6ccc416b39879",
"variant_id": "8d7763e9a32c457da47ba360f3d82735",
"name": "Авангард 252 (Белый)",
"barcode": "ARF-252W",
"quantity": 1,
"price_at_sale": "145000",
"cost_price_at_sale": "125000",
"discount_per_item": "0",
"total": "145000"
},
{
"product_id": "fd2ae15eb67043b4a66bc3e38c320b7e",
"variant_id": "97ba4380a7684e53b91ad4e85cdcb8d0",
"name": "Авангард 360 витрины холод (Черный)",
"barcode": "\"AVSC-360\" Black",
"quantity": 1,
"price_at_sale": "175000",
"cost_price_at_sale": "149.700",
"discount_per_item": "0",
"total": "175000"
}
],
"total_amount": "326000.00",
"delivery_cost": "6000",
"note": "Сейчас ",
"payment_method": "cash",
"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>Накладная 17f73093</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;\">Печать</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № 17f73093</h1>\n <p>от 10.04.2026 14:26</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>Авангард 252 (Белый)</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">145 000,00</td>\n \n <td style=\"text-align: right;\">145 000,00</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>Авангард 360 витрины холод (Черный)</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">175 000,00</td>\n \n <td style=\"text-align: right;\">175 000,00</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;\">320 000,00 ₸</td>\n </tr>\n <tr>\n <td colspan=\"4\" style=\"text-align: right;\">Доставка:</td>\n <td style=\"text-align: right;\">6 000,00 ₸</td>\n </tr>\n \n <tr class=\"total\">\n <td colspan=\"4\" style=\"text-align: right;\">Итого к оплате:</td>\n <td style=\"text-align: right;\">326 000,00 ₸</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>Кассир: Разия</p>\n </div>\n </div>\n </body>\n </html>\n ",
"return_info": {
"returned_items": {
"97ba4380a7684e53b91ad4e85cdcb8d0": 1
},
"return_transaction_ids": [
"fb5831da45d0444ab399b6d55292c4e6"
]
}
},
{
"id": "fb5831da45d0444ab399b6d55292c4e6",
"timestamp": "2026-04-10T14:30:32.952994+05:00",
"type": "return",
"status": "completed",
"original_transaction_id": "17f73093cb914619b45b124d4381f282",
"user_id": "492c42b143934be2a9d2639771ed6f01",
"user_name": "Разия",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "64b896717daf410d9281f7a2fc4308b9",
"items": [
{
"product_id": "fd2ae15eb67043b4a66bc3e38c320b7e",
"variant_id": "97ba4380a7684e53b91ad4e85cdcb8d0",
"name": "Авангард 360 витрины холод (Черный)",
"barcode": "\"AVSC-360\" Black",
"quantity": 1,
"price_at_sale": "175000",
"cost_price_at_sale": "149.700",
"discount_per_item": "0",
"total": "175000"
}
],
"total_amount": "-175000.00",
"payment_method": "cash"
},
{
"id": "e10cd4fb305443f88b7e8fce31ad9cd3",
"timestamp": "2026-04-10T14:45:01.083544+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "b2559d2ff232478e9f0f790439e83acb",
"user_name": "Расул",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "67e722742b8d4f02bdf79e5ef2e0a49e",
"items": [
{
"product_id": "5a34e3d3b60946a2ae34a15ea1728490",
"variant_id": "d81acd37c5b2450298ff0a64d967e316",
"name": "Холодильник LG 509 (Белый)",
"barcode": "MQWM",
"quantity": 1,
"price_at_sale": "290.000",
"cost_price_at_sale": "261000",
"discount_per_item": "0",
"total": "290.000"
}
],
"total_amount": "290.000",
"delivery_cost": "0",
"note": "",
"payment_method": "cash",
"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>Накладная e10cd4fb</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;\">Печать</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № e10cd4fb</h1>\n <p>от 10.04.2026 14:45</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 509 (Белый)</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">290,00</td>\n \n <td style=\"text-align: right;\">290,00</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;\">290,00 ₸</td>\n </tr>\n \n </table>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Расул</p>\n </div>\n </div>\n </body>\n </html>\n "
},
{
"id": "b1fba77623484956924dc465b942c204",
"timestamp": "2026-04-10T14:59:00.136246+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "eea9afb0b3df45bbab4bcb8f7357af56",
"user_name": "Ахмед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "a5420a02ce8d4b378e5571794841ed57",
"items": [
{
"product_id": null,
"variant_id": "custom_1775814934817",
"name": "Fs635G1wi ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "170000",
"cost_price_at_sale": "0.00",
"discount_per_item": "0.00",
"total": "170000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1775814976421",
"name": "Wonbao170",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "85000",
"cost_price_at_sale": "0.00",
"discount_per_item": "0.00",
"total": "85000",
"is_custom": true
}
],
"total_amount": "260000.00",
"delivery_cost": "5000",
"note": "улжан2 87472688484",
"payment_method": "cash",
"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>Накладная b1fba776</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;\">Печать</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № b1fba776</h1>\n <p>от 10.04.2026 14:59</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>Fs635G1wi </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">170 000,00</td>\n \n <td style=\"text-align: right;\">170 000,00</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>Wonbao170</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">85 000,00</td>\n \n <td style=\"text-align: right;\">85 000,00</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;\">255 000,00 ₸</td>\n </tr>\n <tr>\n <td colspan=\"4\" style=\"text-align: right;\">Доставка:</td>\n <td style=\"text-align: right;\">5 000,00 ₸</td>\n </tr>\n \n <tr class=\"total\">\n <td colspan=\"4\" style=\"text-align: right;\">Итого к оплате:</td>\n <td style=\"text-align: right;\">260 000,00 ₸</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;\">улжан2 87472688484</p>\n </div>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Ахмед</p>\n </div>\n </div>\n </body>\n </html>\n "
},
{
"id": "379f6af069c1488fb460ae9138b7be03",
"timestamp": "2026-04-10T15:09:29.464485+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1775815765673",
"name": "Бауматик",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "50000",
"cost_price_at_sale": "0.00",
"discount_per_item": "0.00",
"total": "50000",
"is_custom": true
}
],
"total_amount": "50000.00",
"delivery_cost": "0",
"note": "",
"payment_method": "cash",
"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>Накладная 379f6af0</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;\">Печать</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № 379f6af0</h1>\n <p>от 10.04.2026 15:09</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>Бауматик</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">50 000,00</td>\n \n <td style=\"text-align: right;\">50 000,00</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;\">50 000,00 ₸</td>\n </tr>\n \n </table>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Мухамед</p>\n </div>\n </div>\n </body>\n </html>\n "
},
{
"id": "fa6ea1ca91664a9194c7c38ab8b82074",
"timestamp": "2026-04-10T15:14:20.766345+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1775816056931",
"name": "Baumatic-pro",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "50000",
"cost_price_at_sale": "0.00",
"discount_per_item": "0.00",
"total": "50000",
"is_custom": true
}
],
"total_amount": "50000.00",
"delivery_cost": "0",
"note": "",
"payment_method": "cash",
"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>Накладная fa6ea1ca</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;\">Печать</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № fa6ea1ca</h1>\n <p>от 10.04.2026 15:14</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>Baumatic-pro</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">50 000,00</td>\n \n <td style=\"text-align: right;\">50 000,00</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;\">50 000,00 ₸</td>\n </tr>\n \n </table>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Мухамед</p>\n </div>\n </div>\n </body>\n </html>\n "
},
{
"id": "6ee0c4695c414617a0f8a34096abce58",
"timestamp": "2026-04-11T10:43:24.362128+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1775886120996",
"name": "Авангард 16121W",
"barcode": "CUSTOM",
"quantity": 3,
"price_at_sale": "85000",
"cost_price_at_sale": "0.00",
"discount_per_item": "0.00",
"total": "255000",
"is_custom": true
}
],
"total_amount": "260000.00",
"delivery_cost": "5000",
"note": "Ул ынтымак 46 87781576353",
"payment_method": "cash",
"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>Накладная 6ee0c469</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;\">Печать</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № 6ee0c469</h1>\n <p>от 11.04.2026 10:43</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>Авангард 16121W</td>\n <td style=\"text-align: right;\">3</td>\n <td style=\"text-align: right;\">85 000,00</td>\n \n <td style=\"text-align: right;\">255 000,00</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;\">255 000,00 ₸</td>\n </tr>\n <tr>\n <td colspan=\"4\" style=\"text-align: right;\">Доставка:</td>\n <td style=\"text-align: right;\">5 000,00 ₸</td>\n </tr>\n \n <tr class=\"total\">\n <td colspan=\"4\" style=\"text-align: right;\">Итого к оплате:</td>\n <td style=\"text-align: right;\">260 000,00 ₸</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;\">Ул ынтымак 46 87781576353</p>\n </div>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Мухамед</p>\n </div>\n </div>\n </body>\n </html>\n "
},
{
"id": "18ba11b3cb1d44368da9bb2befdd7e0e",
"timestamp": "2026-04-11T10:45:08.648872+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1775886262424",
"name": "Авангард 16121W",
"barcode": "CUSTOM",
"quantity": 3,
"price_at_sale": "85000",
"cost_price_at_sale": "0.00",
"discount_per_item": "0.00",
"total": "255000",
"is_custom": true
}
],
"total_amount": "260000.00",
"delivery_cost": "5000",
"note": "Ул ынтымак 46 87781576353 остаток 5000",
"payment_method": "cash",
"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>Накладная 18ba11b3</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;\">Печать</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № 18ba11b3</h1>\n <p>от 11.04.2026 10:45</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>Авангард 16121W</td>\n <td style=\"text-align: right;\">3</td>\n <td style=\"text-align: right;\">85 000,00</td>\n \n <td style=\"text-align: right;\">255 000,00</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;\">255 000,00 ₸</td>\n </tr>\n <tr>\n <td colspan=\"4\" style=\"text-align: right;\">Доставка:</td>\n <td style=\"text-align: right;\">5 000,00 ₸</td>\n </tr>\n \n <tr class=\"total\">\n <td colspan=\"4\" style=\"text-align: right;\">Итого к оплате:</td>\n <td style=\"text-align: right;\">260 000,00 ₸</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;\">Ул ынтымак 46 87781576353 остаток 5000</p>\n </div>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Мухамед</p>\n </div>\n </div>\n </body>\n </html>\n "
},
{
"id": "5003680ef410454098c78e01d6f32945",
"timestamp": "2026-04-11T12:25:18.568018+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1775892289797",
"name": "3021G CCB",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "35000",
"cost_price_at_sale": "0.00",
"discount_per_item": "0.00",
"total": "35000",
"is_custom": true
}
],
"total_amount": "35000.00",
"delivery_cost": "0",
"note": "Оплочено",
"payment_method": "cash",
"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>Накладная 5003680e</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;\">Печать</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № 5003680e</h1>\n <p>от 11.04.2026 12:25</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>3021G CCB</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">35 000,00</td>\n \n <td style=\"text-align: right;\">35 000,00</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;\">35 000,00 ₸</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>Кассир: Мухамед</p>\n </div>\n </div>\n </body>\n </html>\n "
},
{
"id": "f87ee858fbf7426b80f52028b60115b2",
"timestamp": "2026-04-11T13:25:32.656378+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1775895884820",
"name": "B-tic 5725 BL ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "40000",
"cost_price_at_sale": "0.00",
"discount_per_item": "0.00",
"total": "40000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1775895912300",
"name": "2560 BL",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "25000",
"cost_price_at_sale": "0.00",
"discount_per_item": "0.00",
"total": "25000",
"is_custom": true
}
],
"total_amount": "65000.00",
"delivery_cost": "0",
"note": "Оплочено",
"payment_method": "cash",
"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>Накладная f87ee858</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;\">Печать</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № f87ee858</h1>\n <p>от 11.04.2026 13:25</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>B-tic 5725 BL </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">40 000,00</td>\n \n <td style=\"text-align: right;\">40 000,00</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>2560 BL</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">25 000,00</td>\n \n <td style=\"text-align: right;\">25 000,00</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;\">65 000,00 ₸</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>Кассир: Мухамед</p>\n </div>\n </div>\n </body>\n </html>\n "
},
{
"id": "64d1b668c9a44b57adffbd56f04c208d",
"timestamp": "2026-04-11T13:49:08.893034+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1775897011470",
"name": "06 CD",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "100000",
"cost_price_at_sale": "0.00",
"discount_per_item": "0.00",
"total": "100000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1775897042449",
"name": "6047 A2",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "65000",
"cost_price_at_sale": "0.00",
"discount_per_item": "0.00",
"total": "65000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1775897194561",
"name": "0860 B",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "65000",
"cost_price_at_sale": "0.00",
"discount_per_item": "0.00",
"total": "65000",
"is_custom": true
}
],
"total_amount": "235000.00",
"delivery_cost": "5000",
"note": "Нуркент 100 дом 1 87773659724 87711916412 остаток 5000",
"payment_method": "cash",
"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>Накладная 64d1b668</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;\">Печать</button>\n </div>\n <div class=\"header\">\n <h1>Товарная накладная № 64d1b668</h1>\n <p>от 11.04.2026 13:49</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>06 CD</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">100 000,00</td>\n \n <td style=\"text-align: right;\">100 000,00</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>6047 A2</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">65 000,00</td>\n \n <td style=\"text-align: right;\">65 000,00</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">3</td>\n <td>0860 B</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">65 000,00</td>\n \n <td style=\"text-align: right;\">65 000,00</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;\">230 000,00 ₸</td>\n </tr>\n <tr>\n <td colspan=\"4\" style=\"text-align: right;\">Доставка:</td>\n <td style=\"text-align: right;\">5 000,00 ₸</td>\n </tr>\n \n <tr class=\"total\">\n <td colspan=\"4\" style=\"text-align: right;\">Итого к оплате:</td>\n <td style=\"text-align: right;\">235 000,00 ₸</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;\">Нуркент 100 дом 1 87773659724 87711916412 остаток 5000</p>\n </div>\n \n <div class=\"footer-info\">\n <p>Способ оплаты: Наличные</p>\n <p>Кассир: Мухамед</p>\n </div>\n </div>\n </body>\n </html>\n "
},
{
"id": "605622c417d140b396027692e6a505ed",
"timestamp": "2026-04-12T07:34:45.931981+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1775961223066",
"name": "B-tic 4030 B ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "30000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "30000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1775961249277",
"name": "B-tic 4017",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "35000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "35000",
"is_custom": true
}
],
"total_amount": "65000",
"delivery_cost": "0",
"note": "Оплочено ",
"payment_method": "cash",
"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>Накладная 605622c4</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>Товарная накладная № 605622c4</h1>\n <p>от 12.04.2026 07:34</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>B-tic 4030 B </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">30 000</td>\n \n <td style=\"text-align: right;\">30 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>B-tic 4017</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;\">65 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>Кассир: Мухамед</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=605622c417d140b396027692e6a505ed';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "ff400faa59124038b51049c003854a81",
"timestamp": "2026-04-12T09:36:47.718061+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1775968558271",
"name": "0960 В",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "30000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "30000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1775968587968",
"name": "6040 ЕЕ ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "45000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "45000",
"is_custom": true
}
],
"total_amount": "75000",
"delivery_cost": "0",
"note": "Оплочено ",
"payment_method": "cash",
"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>Накладная ff400faa</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>Товарная накладная № ff400faa</h1>\n <p>от 12.04.2026 09:36</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>0960 В</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">30 000</td>\n \n <td style=\"text-align: right;\">30 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>6040 ЕЕ </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">45 000</td>\n \n <td style=\"text-align: right;\">45 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;\">75 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>Кассир: Мухамед</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=ff400faa59124038b51049c003854a81';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "edf915dbc9274bc1a6a9d458832fa41a",
"timestamp": "2026-04-12T10:28:38.379019+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1775971686238",
"name": "Авангард 299",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "105000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "105000",
"is_custom": true
}
],
"total_amount": "105000",
"delivery_cost": "0",
"note": "Оплочено ",
"payment_method": "cash",
"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>Накладная edf915db</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>Товарная накладная № edf915db</h1>\n <p>от 12.04.2026 10:28</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>Авангард 299</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">105 000</td>\n \n <td style=\"text-align: right;\">105 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;\">105 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>Кассир: Мухамед</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=edf915dbc9274bc1a6a9d458832fa41a';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "33532c3d7dc14d3babb4a31a115e233e",
"timestamp": "2026-04-12T11:25:31.021235+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "eea9afb0b3df45bbab4bcb8f7357af56",
"user_name": "Ахмед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "a5420a02ce8d4b378e5571794841ed57",
"items": [
{
"product_id": null,
"variant_id": "custom_1775975120210",
"name": "HS2S",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "195000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "195000",
"is_custom": true
}
],
"total_amount": "195000",
"delivery_cost": "0",
"note": "",
"payment_method": "cash",
"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>Накладная 33532c3d</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>Товарная накладная № 33532c3d</h1>\n <p>от 12.04.2026 11:25</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>HS2S</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">195 000</td>\n \n <td style=\"text-align: right;\">195 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;\">195 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=33532c3d7dc14d3babb4a31a115e233e';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "e706bf49a40c430eb93dbcbda79df148",
"timestamp": "2026-04-12T11:28:48.141176+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "eea9afb0b3df45bbab4bcb8f7357af56",
"user_name": "Ахмед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "a5420a02ce8d4b378e5571794841ed57",
"items": [
{
"product_id": null,
"variant_id": "custom_1775974676774",
"name": "Плита 6040ЕТ А1",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "60000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "60000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1775974820814",
"name": "Вытяжка 0660",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "30000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "30000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1775974904852",
"name": "Духовка 06",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "110000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "110000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1775975069988",
"name": "Холодильник леадброс 369",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "175000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "175000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1775975122972",
"name": "Стиралки 2612Dg",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "100000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "100000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1775975224405",
"name": "Алмаком 07 QS",
"barcode": "CUSTOM",
"quantity": 125000,
"price_at_sale": "1",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "125000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1775975311413",
"name": "Алмаком 09QS",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "140000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "140000",
"is_custom": true
}
],
"total_amount": "740000",
"delivery_cost": "0",
"note": "",
"payment_method": "cash",
"edits": [
{
"timestamp": "2026-04-12T11:30:12.764446+05:00",
"type": "full_edit"
}
],
"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>Накладная e706bf49</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>Товарная накладная № e706bf49</h1>\n <p>от 12.04.2026 11:28</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>Плита 6040ЕТ А1</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">60 000</td>\n \n <td style=\"text-align: right;\">60 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>Вытяжка 0660</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">30 000</td>\n \n <td style=\"text-align: right;\">30 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">3</td>\n <td>Духовка 06</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">110 000</td>\n \n <td style=\"text-align: right;\">110 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">4</td>\n <td>Холодильник леадброс 369</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;\">5</td>\n <td>Стиралки 2612Dg</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">100 000</td>\n \n <td style=\"text-align: right;\">100 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">6</td>\n <td>Алмаком 07 QS</td>\n <td style=\"text-align: right;\">125000</td>\n <td style=\"text-align: right;\">1</td>\n \n <td style=\"text-align: right;\">125 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">7</td>\n <td>Алмаком 09QS</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">140 000</td>\n \n <td style=\"text-align: right;\">140 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;\">740 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=e706bf49a40c430eb93dbcbda79df148';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "caf31049b28d4bd3b9cf52cca3d85be7",
"timestamp": "2026-04-12T11:40:08.370652+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "eea9afb0b3df45bbab4bcb8f7357af56",
"user_name": "Ахмед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "a5420a02ce8d4b378e5571794841ed57",
"items": [
{
"product_id": null,
"variant_id": "custom_1775975979499",
"name": "Авангард 8кг Biw",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "120000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "120000",
"is_custom": true
}
],
"total_amount": "125000",
"delivery_cost": "5000",
"note": "",
"payment_method": "card",
"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>Накладная caf31049</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>Товарная накладная № caf31049</h1>\n <p>от 12.04.2026 11:40</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=caf31049b28d4bd3b9cf52cca3d85be7';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "f20cbc2cece94a48a4976769d20faeac",
"timestamp": "2026-04-12T11:44:00.425444+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "eea9afb0b3df45bbab4bcb8f7357af56",
"user_name": "Ахмед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "a5420a02ce8d4b378e5571794841ed57",
"items": [
{
"product_id": null,
"variant_id": "custom_1775976186906",
"name": "Авангард 8кг Biw",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "120000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "120000",
"is_custom": true
}
],
"total_amount": "125000",
"delivery_cost": "5000",
"note": "",
"payment_method": "cash",
"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 "
},
{
"id": "f163f7f808ae468680997936a5930b61",
"timestamp": "2026-04-12T15:46:37.089161+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "eea9afb0b3df45bbab4bcb8f7357af56",
"user_name": "Ахмед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "a5420a02ce8d4b378e5571794841ed57",
"items": [
{
"product_id": "2d2c02b61c0c4da78926ba092aea3e27",
"variant_id": "39334cefd0ad4d3587817c7ee32ed231",
"name": "Ясин YSH-18GDK (Белый)",
"barcode": "YSH-18GDK",
"quantity": 1,
"price_at_sale": "165000",
"cost_price_at_sale": "145028",
"discount_per_item": "0",
"total": "165000"
}
],
"total_amount": "165000",
"delivery_cost": "0",
"note": "",
"payment_method": "cash",
"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 "
},
{
"id": "91e5a49b860f4b658224d135097d27cc",
"timestamp": "2026-04-14T11:17:58.108868+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "eea9afb0b3df45bbab4bcb8f7357af56",
"user_name": "Ахмед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "a5420a02ce8d4b378e5571794841ed57",
"items": [
{
"product_id": "66a71ac5e45844f49d62da6aebe59632",
"variant_id": "c0a86380259344458f8fbc69b449a174",
"name": "Посудомойка AVANT BG01B (Черный)",
"barcode": "110523",
"quantity": 2,
"price_at_sale": "150000",
"cost_price_at_sale": "128000",
"discount_per_item": "10000",
"total": "280000"
},
{
"product_id": null,
"variant_id": "custom_1776147166965",
"name": "Духовка 06 CD",
"barcode": "CUSTOM",
"quantity": 2,
"price_at_sale": "100000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "200000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776147196105",
"name": "Плита р200 4 х ",
"barcode": "CUSTOM",
"quantity": 2,
"price_at_sale": "45000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "90000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776147223541",
"name": "Вытяжка 0852",
"barcode": "CUSTOM",
"quantity": 2,
"price_at_sale": "40000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "80000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776147280227",
"name": "Тостер 107",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "12000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "12000",
"is_custom": true
}
],
"total_amount": "667000",
"delivery_cost": "5000",
"note": "Арена сити спорт С 87771999927",
"payment_method": "cash",
"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>Накладная 91e5a49b</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>Товарная накладная № 91e5a49b</h1>\n <p>от 14.04.2026 11:17</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 <th style=\"text-align: right;\">Сумма</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td style=\"text-align: center;\">1</td>\n <td>Посудомойка AVANT BG01B (Черный)</td>\n <td style=\"text-align: right;\">2</td>\n <td style=\"text-align: right;\">150 000</td>\n <td style=\"text-align: right;\">10 000</td>\n <td style=\"text-align: right;\">280 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>Духовка 06 CD</td>\n <td style=\"text-align: right;\">2</td>\n <td style=\"text-align: right;\">100 000</td>\n <td style=\"text-align: right;\">0</td>\n <td style=\"text-align: right;\">200 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">3</td>\n <td>Плита р200 4 х </td>\n <td style=\"text-align: right;\">2</td>\n <td style=\"text-align: right;\">45 000</td>\n <td style=\"text-align: right;\">0</td>\n <td style=\"text-align: right;\">90 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">4</td>\n <td>Вытяжка 0852</td>\n <td style=\"text-align: right;\">2</td>\n <td style=\"text-align: right;\">40 000</td>\n <td style=\"text-align: right;\">0</td>\n <td style=\"text-align: right;\">80 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">5</td>\n <td>Тостер 107</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">12 000</td>\n <td style=\"text-align: right;\">0</td>\n <td style=\"text-align: right;\">12 000</td>\n </tr>\n </tbody>\n </table>\n <table style=\"margin-top: 20px;\">\n \n <tr>\n <td colspan=\"5\" style=\"text-align: right;\">Подытог:</td>\n <td style=\"text-align: right;\">662 000 ₸</td>\n </tr>\n <tr>\n <td colspan=\"5\" style=\"text-align: right;\">Доставка:</td>\n <td style=\"text-align: right;\">5 000 ₸</td>\n </tr>\n \n <tr class=\"total\">\n <td colspan=\"5\" style=\"text-align: right;\">Итого к оплате:</td>\n <td style=\"text-align: right;\">667 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;\">Арена сити спорт С 87771999927</p>\n </div>\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=91e5a49b860f4b658224d135097d27cc';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "a59c8a53962646e69dec8a84917116d9",
"timestamp": "2026-04-15T11:59:48.001319+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1776236305365",
"name": "6041FG CCB ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "75000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "75000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776236315688",
"name": "0860 ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "60000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "60000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776236333475",
"name": "09 CD",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "115000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "115000",
"is_custom": true
}
],
"total_amount": "250000",
"delivery_cost": "0",
"note": "Оплочено ",
"payment_method": "cash",
"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>Накладная a59c8a53</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>Товарная накладная № a59c8a53</h1>\n <p>от 15.04.2026 11:59</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>6041FG CCB </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">75 000</td>\n \n <td style=\"text-align: right;\">75 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>0860 </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">60 000</td>\n \n <td style=\"text-align: right;\">60 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">3</td>\n <td>09 CD</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">115 000</td>\n \n <td style=\"text-align: right;\">115 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;\">250 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>Кассир: Мухамед</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=a59c8a53962646e69dec8a84917116d9';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "d1fd58c27ed449ee863814acf3cc3997",
"timestamp": "2026-04-15T12:18:23.882224+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1776237414527",
"name": "Хинг 500 ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "210000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "210000",
"is_custom": true
}
],
"total_amount": "215000",
"delivery_cost": "5000",
"note": "Жумабекова 21 87077115113 87078079976 остаток 145000",
"payment_method": "cash",
"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>Накладная d1fd58c2</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>Товарная накладная № d1fd58c2</h1>\n <p>от 15.04.2026 12:18</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>Хинг 500 </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">210 000</td>\n \n <td style=\"text-align: right;\">210 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;\">210 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;\">215 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;\">Жумабекова 21 87077115113 87078079976 остаток 145000</p>\n </div>\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=d1fd58c27ed449ee863814acf3cc3997';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "143b7a4f344c487893baaf3c63b32466",
"timestamp": "2026-04-15T13:17:09.357285+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1776240838971",
"name": "7051 (В)",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "65000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "65000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776240858336",
"name": "09 CD",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "105000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "105000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776240933100",
"name": "45A90",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "73000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "73000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776240951997",
"name": "Авант посудамойка",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "165000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "165000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776241004926",
"name": "Мойка 68х46 серый ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "17000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "17000",
"is_custom": true
}
],
"total_amount": "425000",
"delivery_cost": "0",
"note": "Забрать 425000",
"payment_method": "cash",
"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>Накладная 143b7a4f</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>Товарная накладная № 143b7a4f</h1>\n <p>от 15.04.2026 13:17</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>7051 (В)</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">65 000</td>\n \n <td style=\"text-align: right;\">65 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>09 CD</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">105 000</td>\n \n <td style=\"text-align: right;\">105 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">3</td>\n <td>45A90</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">73 000</td>\n \n <td style=\"text-align: right;\">73 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">4</td>\n <td>Авант посудамойка</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 \n <tr>\n <td style=\"text-align: center;\">5</td>\n <td>Мойка 68х46 серый </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">17 000</td>\n \n <td style=\"text-align: right;\">17 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;\">425 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;\">Забрать 425000</p>\n </div>\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=143b7a4f344c487893baaf3c63b32466';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "6d1b303f97fb4b99a837c0c6852c0173",
"timestamp": "2026-04-15T13:19:23.847266+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1776241108916",
"name": "60х46 серый мойка",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "13000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "13000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776241122741",
"name": "7051 (В)",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "65000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "65000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776241153270",
"name": "Мидея вытяжка встроенный ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "45000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "45000",
"is_custom": true
}
],
"total_amount": "123000",
"delivery_cost": "0",
"note": "Расул",
"payment_method": "cash",
"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>Накладная 6d1b303f</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>Товарная накладная № 6d1b303f</h1>\n <p>от 15.04.2026 13:19</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>60х46 серый мойка</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">13 000</td>\n \n <td style=\"text-align: right;\">13 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>7051 (В)</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">65 000</td>\n \n <td style=\"text-align: right;\">65 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;\">45 000</td>\n \n <td style=\"text-align: right;\">45 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;\">123 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>Кассир: Мухамед</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=6d1b303f97fb4b99a837c0c6852c0173';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "2420fa1244f64c65a39b71dcfb5cb904",
"timestamp": "2026-04-16T10:44:29.144381+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "4d5d7ded5b9143f5a3f90744240e928e",
"user_name": "Шамиль",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "032d03ea26bf4887a28ae4f7f7f2b02c",
"items": [
{
"product_id": null,
"variant_id": "custom_1776317990659",
"name": "Lg холодильник 459 белой",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "230000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "230000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776318201280",
"name": "Газ 90 беж зелон 5кмоф",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "200000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "200000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776318249296",
"name": "Морозильник 800лт ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "240000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "240000",
"is_custom": true
}
],
"total_amount": "670000",
"delivery_cost": "0",
"note": "Барыс спарсапура",
"payment_method": "cash",
"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>Накладная 2420fa12</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>Товарная накладная № 2420fa12</h1>\n <p>от 16.04.2026 10: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>Lg холодильник 459 белой</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">230 000</td>\n \n <td style=\"text-align: right;\">230 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>Газ 90 беж зелон 5кмоф</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">200 000</td>\n \n <td style=\"text-align: right;\">200 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">3</td>\n <td>Морозильник 800лт </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">240 000</td>\n \n <td style=\"text-align: right;\">240 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;\">670 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>Кассир: Шамиль</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=2420fa1244f64c65a39b71dcfb5cb904';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "1eb804494e9b4ff1898eedf2e19055dd",
"timestamp": "2026-04-16T11:11:08.552562+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "4d5d7ded5b9143f5a3f90744240e928e",
"user_name": "Шамиль",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "032d03ea26bf4887a28ae4f7f7f2b02c",
"items": [
{
"product_id": null,
"variant_id": "custom_1776319442866",
"name": "Морозильник 200 ",
"barcode": "CUSTOM",
"quantity": 3,
"price_at_sale": "73000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "219000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776319507872",
"name": "220",
"barcode": "CUSTOM",
"quantity": 3,
"price_at_sale": "85000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "255000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776319533811",
"name": "Морозильник 300",
"barcode": "CUSTOM",
"quantity": 3,
"price_at_sale": "95000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "285000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776319571851",
"name": "Морозильник 375ванбо",
"barcode": "CUSTOM",
"quantity": 3,
"price_at_sale": "90000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "270000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776319617559",
"name": "Морозильник 375GL сер",
"barcode": "CUSTOM",
"quantity": 3,
"price_at_sale": "95000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "285000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776319682435",
"name": "Стиральная машина LG 6kg ns3w",
"barcode": "CUSTOM",
"quantity": 2,
"price_at_sale": "145000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "290000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776319749729",
"name": "Стиральная машина LG ps6w 8kg ",
"barcode": "CUSTOM",
"quantity": 2,
"price_at_sale": "200000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "400000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776319793390",
"name": "Пылесос LG 83209",
"barcode": "CUSTOM",
"quantity": 5,
"price_at_sale": "65000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "325000",
"is_custom": true
}
],
"total_amount": "2329000",
"delivery_cost": "0",
"note": "",
"payment_method": "cash",
"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>Накладная 1eb80449</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>Товарная накладная № 1eb80449</h1>\n <p>от 16.04.2026 11:11</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>Морозильник 200 </td>\n <td style=\"text-align: right;\">3</td>\n <td style=\"text-align: right;\">73 000</td>\n \n <td style=\"text-align: right;\">219 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>220</td>\n <td style=\"text-align: right;\">3</td>\n <td style=\"text-align: right;\">85 000</td>\n \n <td style=\"text-align: right;\">255 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">3</td>\n <td>Морозильник 300</td>\n <td style=\"text-align: right;\">3</td>\n <td style=\"text-align: right;\">95 000</td>\n \n <td style=\"text-align: right;\">285 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">4</td>\n <td>Морозильник 375ванбо</td>\n <td style=\"text-align: right;\">3</td>\n <td style=\"text-align: right;\">90 000</td>\n \n <td style=\"text-align: right;\">270 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">5</td>\n <td>Морозильник 375GL сер</td>\n <td style=\"text-align: right;\">3</td>\n <td style=\"text-align: right;\">95 000</td>\n \n <td style=\"text-align: right;\">285 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">6</td>\n <td>Стиральная машина LG 6kg ns3w</td>\n <td style=\"text-align: right;\">2</td>\n <td style=\"text-align: right;\">145 000</td>\n \n <td style=\"text-align: right;\">290 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">7</td>\n <td>Стиральная машина LG ps6w 8kg </td>\n <td style=\"text-align: right;\">2</td>\n <td style=\"text-align: right;\">200 000</td>\n \n <td style=\"text-align: right;\">400 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">8</td>\n <td>Пылесос LG 83209</td>\n <td style=\"text-align: right;\">5</td>\n <td style=\"text-align: right;\">65 000</td>\n \n <td style=\"text-align: right;\">325 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;\">2 329 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=1eb804494e9b4ff1898eedf2e19055dd';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "21bfd63aeeab4005bbea7552286923c5",
"timestamp": "2026-04-16T11:17:36.405995+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "4d5d7ded5b9143f5a3f90744240e928e",
"user_name": "Шамиль",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "032d03ea26bf4887a28ae4f7f7f2b02c",
"items": [
{
"product_id": null,
"variant_id": "custom_1776319996042",
"name": "Морозильник 200",
"barcode": "CUSTOM",
"quantity": 3,
"price_at_sale": "73000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "219000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776320018198",
"name": "Морозильник 220",
"barcode": "CUSTOM",
"quantity": 3,
"price_at_sale": "85000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "255000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776320046944",
"name": "Морозильник 300",
"barcode": "CUSTOM",
"quantity": 3,
"price_at_sale": "95000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "285000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776320079950",
"name": "Морозильник 375белой ",
"barcode": "CUSTOM",
"quantity": 3,
"price_at_sale": "90000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "270000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776320130904",
"name": "Морозильник сер 375 GL",
"barcode": "CUSTOM",
"quantity": 3,
"price_at_sale": "95000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "285000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776320162281",
"name": "Стиральная машина LG 6kg ",
"barcode": "CUSTOM",
"quantity": 2,
"price_at_sale": "145000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "290000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776320206672",
"name": "Стиральная машина LG 8KG ",
"barcode": "CUSTOM",
"quantity": 2,
"price_at_sale": "200000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "400000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776320241318",
"name": "Пылесос LG 83209",
"barcode": "CUSTOM",
"quantity": 5,
"price_at_sale": "65000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "325000",
"is_custom": true
}
],
"total_amount": "2329000",
"delivery_cost": "0",
"note": "",
"payment_method": "cash",
"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>Накладная 21bfd63a</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>Товарная накладная № 21bfd63a</h1>\n <p>от 16.04.2026 11:17</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>Морозильник 200</td>\n <td style=\"text-align: right;\">3</td>\n <td style=\"text-align: right;\">73 000</td>\n \n <td style=\"text-align: right;\">219 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>Морозильник 220</td>\n <td style=\"text-align: right;\">3</td>\n <td style=\"text-align: right;\">85 000</td>\n \n <td style=\"text-align: right;\">255 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">3</td>\n <td>Морозильник 300</td>\n <td style=\"text-align: right;\">3</td>\n <td style=\"text-align: right;\">95 000</td>\n \n <td style=\"text-align: right;\">285 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">4</td>\n <td>Морозильник 375белой </td>\n <td style=\"text-align: right;\">3</td>\n <td style=\"text-align: right;\">90 000</td>\n \n <td style=\"text-align: right;\">270 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">5</td>\n <td>Морозильник сер 375 GL</td>\n <td style=\"text-align: right;\">3</td>\n <td style=\"text-align: right;\">95 000</td>\n \n <td style=\"text-align: right;\">285 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">6</td>\n <td>Стиральная машина LG 6kg </td>\n <td style=\"text-align: right;\">2</td>\n <td style=\"text-align: right;\">145 000</td>\n \n <td style=\"text-align: right;\">290 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">7</td>\n <td>Стиральная машина LG 8KG </td>\n <td style=\"text-align: right;\">2</td>\n <td style=\"text-align: right;\">200 000</td>\n \n <td style=\"text-align: right;\">400 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">8</td>\n <td>Пылесос LG 83209</td>\n <td style=\"text-align: right;\">5</td>\n <td style=\"text-align: right;\">65 000</td>\n \n <td style=\"text-align: right;\">325 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;\">2 329 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=21bfd63aeeab4005bbea7552286923c5';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "ef8766cae0c946579a0dc7b285a0959d",
"timestamp": "2026-04-16T12:52:51.044828+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1776325955120",
"name": "Ледброс 225 ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "85000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "85000",
"is_custom": true
}
],
"total_amount": "85000",
"delivery_cost": "0",
"note": "Оплочено ",
"payment_method": "cash",
"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>Накладная ef8766ca</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>Товарная накладная № ef8766ca</h1>\n <p>от 16.04.2026 12:52</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>Ледброс 225 </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 </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;\">85 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>Кассир: Мухамед</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=ef8766cae0c946579a0dc7b285a0959d';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "7c0265e6041040679b9fd71a5d6ad2a1",
"timestamp": "2026-04-16T13:15:08.925471+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1776327284707",
"name": "HD-75",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "45000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "45000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776327296948",
"name": "Малютка",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "20000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "20000",
"is_custom": true
}
],
"total_amount": "65000",
"delivery_cost": "0",
"note": "Оплочено ",
"payment_method": "cash",
"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>Накладная 7c0265e6</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>Товарная накладная № 7c0265e6</h1>\n <p>от 16.04.2026 13:15</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>HD-75</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">45 000</td>\n \n <td style=\"text-align: right;\">45 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;\">20 000</td>\n \n <td style=\"text-align: right;\">20 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;\">65 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>Кассир: Мухамед</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=7c0265e6041040679b9fd71a5d6ad2a1';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "f2abf4c3418f4cc198c347f47b05be34",
"timestamp": "2026-04-16T13:33:27.071387+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "492c42b143934be2a9d2639771ed6f01",
"user_name": "Разия",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "64b896717daf410d9281f7a2fc4308b9",
"items": [
{
"product_id": null,
"variant_id": "custom_1776328384339",
"name": "Газ 9051-CCl(B)",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "150",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "150",
"is_custom": true
}
],
"total_amount": "150",
"delivery_cost": "0",
"note": "",
"payment_method": "cash",
"edits": [
{
"timestamp": "2026-04-16T13:35:26.947086+05:00",
"type": "full_edit"
}
],
"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>Накладная f2abf4c3</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>Товарная накладная № f2abf4c3</h1>\n <p>от 16.04.2026 13:33</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>Газ 9051-CCl(B)</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">150</td>\n \n <td style=\"text-align: right;\">150</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;\">150 ₸</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=f2abf4c3418f4cc198c347f47b05be34';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "8daa25cc98ec42be9d006af0ee47df5a",
"timestamp": "2026-04-16T16:09:11.644186+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1776337748193",
"name": "Авангард витриный ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "275000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "275000",
"is_custom": true
}
],
"total_amount": "275000",
"delivery_cost": "0",
"note": "",
"payment_method": "card",
"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>Накладная 8daa25cc</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>Товарная накладная № 8daa25cc</h1>\n <p>от 16.04.2026 16:09</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>Авангард витриный </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">275 000</td>\n \n <td style=\"text-align: right;\">275 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;\">275 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=8daa25cc98ec42be9d006af0ee47df5a';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "bce66f50aeb44dddbfb1422cbba94681",
"timestamp": "2026-04-16T16:09:47.167273+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1776337777017",
"name": "Авангард витриный ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "275000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "275000",
"is_custom": true
}
],
"total_amount": "275000",
"delivery_cost": "0",
"note": "Оплочено ",
"payment_method": "cash",
"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>Накладная bce66f50</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>Товарная накладная № bce66f50</h1>\n <p>от 16.04.2026 16:09</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>Авангард витриный </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">275 000</td>\n \n <td style=\"text-align: right;\">275 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;\">275 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>Кассир: Мухамед</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=bce66f50aeb44dddbfb1422cbba94681';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "bf0364991eb24f7aa29e4517e1d790e0",
"timestamp": "2026-04-16T16:11:42.866850+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1776337891914",
"name": "4350 W",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "20000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "20000",
"is_custom": true
}
],
"total_amount": "20000",
"delivery_cost": "0",
"note": "Оплочено ",
"payment_method": "cash",
"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>Накладная bf036499</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>Товарная накладная № bf036499</h1>\n <p>от 16.04.2026 16:11</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>4350 W</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">20 000</td>\n \n <td style=\"text-align: right;\">20 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;\">20 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>Кассир: Мухамед</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=bf0364991eb24f7aa29e4517e1d790e0';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "590cd2641a2b4c68b439a7a1d609272e",
"timestamp": "2026-04-16T16:16:00.082825+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1776338144100",
"name": "B-tic 503 ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "40000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "40000",
"is_custom": true
}
],
"total_amount": "40000",
"delivery_cost": "0",
"note": "Оплочено ",
"payment_method": "cash",
"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>Накладная 590cd264</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>Товарная накладная № 590cd264</h1>\n <p>от 16.04.2026 16:16</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>B-tic 503 </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">40 000</td>\n \n <td style=\"text-align: right;\">40 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;\">40 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>Кассир: Мухамед</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=590cd2641a2b4c68b439a7a1d609272e';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "075c37ae3e944b98b9566c3ef4186964",
"timestamp": "2026-04-17T08:36:21.214800+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "4d5d7ded5b9143f5a3f90744240e928e",
"user_name": "Шамиль",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "032d03ea26bf4887a28ae4f7f7f2b02c",
"items": [
{
"product_id": null,
"variant_id": "custom_1776396948945",
"name": "Холодильник ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "135000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "135000",
"is_custom": true
}
],
"total_amount": "140000",
"delivery_cost": "5000",
"note": "",
"payment_method": "card",
"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>Накладная 075c37ae</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>Товарная накладная № 075c37ae</h1>\n <p>от 17.04.2026 08:36</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>Холодильник </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">135 000</td>\n \n <td style=\"text-align: right;\">135 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;\">135 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;\">140 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=075c37ae3e944b98b9566c3ef4186964';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "10d5b4e0b96149b09ba83470df50ea80",
"timestamp": "2026-04-17T14:22:35.803299+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "eea9afb0b3df45bbab4bcb8f7357af56",
"user_name": "Ахмед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "a5420a02ce8d4b378e5571794841ed57",
"items": [
{
"product_id": null,
"variant_id": "custom_1776417747801",
"name": "Блес 400 беж",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "180000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "180000",
"is_custom": true
}
],
"total_amount": "180000",
"delivery_cost": "0",
"note": "",
"payment_method": "cash",
"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>Накладная 10d5b4e0</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>Товарная накладная № 10d5b4e0</h1>\n <p>от 17.04.2026 14:22</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>Блес 400 беж</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">180 000</td>\n \n <td style=\"text-align: right;\">180 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;\">180 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=10d5b4e0b96149b09ba83470df50ea80';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "417028b983324eb68daf95a5c6e43509",
"timestamp": "2026-04-18T09:50:48.059641+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1776487831248",
"name": "6015 ВА",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "130000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "130000",
"is_custom": true
}
],
"total_amount": "130000",
"delivery_cost": "0",
"note": "Оплочено ",
"payment_method": "cash",
"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>Накладная 417028b9</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>Товарная накладная № 417028b9</h1>\n <p>от 18.04.2026 09:50</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>6015 ВА</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">130 000</td>\n \n <td style=\"text-align: right;\">130 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;\">130 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>Кассир: Мухамед</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=417028b983324eb68daf95a5c6e43509';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "bd6899d3f36e41688fcbb4d636ada135",
"timestamp": "2026-04-18T10:00:42.939390+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1776488330134",
"name": "6015 ВА",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "130000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "130000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776488352569",
"name": "Авангард 412 СВЕ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "175000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "175000",
"is_custom": true
}
],
"total_amount": "310000",
"delivery_cost": "5000",
"note": "Айжарык ул ермек серкебаева 2 87029669777 87758956833 ",
"payment_method": "cash",
"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>Накладная bd6899d3</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>Товарная накладная № bd6899d3</h1>\n <p>от 18.04.2026 10:00</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>6015 ВА</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">130 000</td>\n \n <td style=\"text-align: right;\">130 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>Авангард 412 СВЕ</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 </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;\">305 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;\">310 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;\">Айжарык ул ермек серкебаева 2 87029669777 87758956833 </p>\n </div>\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=bd6899d3f36e41688fcbb4d636ada135';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "9847bd285d36442e846301847d3e4ca7",
"timestamp": "2026-04-18T10:02:18.022029+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1776488468880",
"name": "6015 ВА",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "130000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "130000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776488482950",
"name": "Авангард 412 СВЕ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "175000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "175000",
"is_custom": true
}
],
"total_amount": "310000",
"delivery_cost": "5000",
"note": "Ул ермек серкебаева 2 87029669777 оплочено ",
"payment_method": "cash",
"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>Накладная 9847bd28</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>Товарная накладная № 9847bd28</h1>\n <p>от 18.04.2026 10:02</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>6015 ВА</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">130 000</td>\n \n <td style=\"text-align: right;\">130 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>Авангард 412 СВЕ</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 </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;\">305 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;\">310 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;\">Ул ермек серкебаева 2 87029669777 оплочено </p>\n </div>\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=9847bd285d36442e846301847d3e4ca7';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "5185b3a8d9554e8c9d887972ba20ffb6",
"timestamp": "2026-04-18T10:26:01.225507+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "492c42b143934be2a9d2639771ed6f01",
"user_name": "Разия",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "64b896717daf410d9281f7a2fc4308b9",
"items": [
{
"product_id": null,
"variant_id": "custom_1776489810432",
"name": "Посумойка 6015ВА",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "130000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "130000",
"is_custom": true
}
],
"total_amount": "130000",
"delivery_cost": "0",
"note": "Розыбакиева 320, третий блок, восьмой этаж, кв 89 ‪+7 707 762 7234‬ есть подьем",
"payment_method": "cash",
"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>Накладная 5185b3a8</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>Товарная накладная № 5185b3a8</h1>\n <p>от 18.04.2026 10:26</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>Посумойка 6015ВА</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">130 000</td>\n \n <td style=\"text-align: right;\">130 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;\">130 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;\">Розыбакиева 320, третий блок, восьмой этаж, кв 89 ‪+7 707 762 7234‬ есть подьем</p>\n </div>\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=5185b3a8d9554e8c9d887972ba20ffb6';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "55b3ec252c3e4b81879d3acc6bde8c4b",
"timestamp": "2026-04-18T10:55:58.265427+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1776491702437",
"name": "09 CD",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "110000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "110000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776491713559",
"name": "6047 A2",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "60000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "60000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776491743890",
"name": "0960 BLAKS",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "35000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "35000",
"is_custom": true
}
],
"total_amount": "205000",
"delivery_cost": "0",
"note": "Оплочено ",
"payment_method": "cash",
"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>Накладная 55b3ec25</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>Товарная накладная № 55b3ec25</h1>\n <p>от 18.04.2026 10:55</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>09 CD</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">110 000</td>\n \n <td style=\"text-align: right;\">110 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>6047 A2</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">60 000</td>\n \n <td style=\"text-align: right;\">60 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">3</td>\n <td>0960 BLAKS</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;\">205 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>Кассир: Мухамед</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=55b3ec252c3e4b81879d3acc6bde8c4b';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "c32c5e2e52a646d99b30c76341412cc6",
"timestamp": "2026-04-18T13:33:54.382881+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1776501172899",
"name": "Ванбо 375L",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "95000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "95000",
"is_custom": true
}
],
"total_amount": "95000",
"delivery_cost": "0",
"note": "Отправить семей под Анарааскар 87781490016 в Ожет стоит камаз ",
"payment_method": "cash",
"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>Накладная c32c5e2e</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>Товарная накладная № c32c5e2e</h1>\n <p>от 18.04.2026 13:33</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>Ванбо 375L</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">95 000</td>\n \n <td style=\"text-align: right;\">95 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;\">95 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;\">Отправить семей под Анарааскар 87781490016 в Ожет стоит камаз </p>\n </div>\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=c32c5e2e52a646d99b30c76341412cc6';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "d07b6954e5d94d8d8231b88b35614ab1",
"timestamp": "2026-04-18T16:14:13.951788+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "492c42b143934be2a9d2639771ed6f01",
"user_name": "Разия",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "64b896717daf410d9281f7a2fc4308b9",
"items": [
{
"product_id": null,
"variant_id": "custom_1776510619044",
"name": "Холодильник 459 серый ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "230000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "230000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776510702333",
"name": "Стиралки ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "190000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "190000",
"is_custom": true
}
],
"total_amount": "425000",
"delivery_cost": "5000",
"note": "Шанырак 2 жанкожа батыра 55/1 это рядом 87760977166. 87479005957, 0статок 200.000 т ",
"payment_method": "cash",
"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>Накладная d07b6954</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>Товарная накладная № d07b6954</h1>\n <p>от 18.04.2026 16:14</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>Холодильник 459 серый </td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">230 000</td>\n \n <td style=\"text-align: right;\">230 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;\">190 000</td>\n \n <td style=\"text-align: right;\">190 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;\">420 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;\">425 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;\">Шанырак 2 жанкожа батыра 55/1 это рядом 87760977166. 87479005957, 0статок 200.000 т </p>\n </div>\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=d07b6954e5d94d8d8231b88b35614ab1';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "2663f53814974e6b9f1f669057c9382d",
"timestamp": "2026-04-18T16:46:06.605997+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "d132944b54314ae1ab4da6ec1b0b04ca",
"items": [
{
"product_id": null,
"variant_id": "custom_1776512761388",
"name": "B-tic 4017",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "35000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "35000",
"is_custom": true
}
],
"total_amount": "35000",
"delivery_cost": "0",
"note": "",
"payment_method": "cash",
"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>Накладная 2663f538</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>Товарная накладная № 2663f538</h1>\n <p>от 18.04.2026 16: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>B-tic 4017</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;\">35 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=2663f53814974e6b9f1f669057c9382d';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "ead93dc5c82e40d789fade98e8c9e97a",
"timestamp": "2026-04-19T10:40:43.153630+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "e4e5d1348fbf4ccb837cf467f2670534",
"items": [
{
"product_id": null,
"variant_id": "custom_1776576759605",
"name": "Р-200 АВ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "25000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "25000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776576781722",
"name": "2560 В",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "23000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "23000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776576797010",
"name": "6040 А1",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "50000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "50000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776577174824",
"name": "B-tic 6010",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "40000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "40000",
"is_custom": true
}
],
"total_amount": "138000",
"delivery_cost": "0",
"note": "Оплочено ",
"payment_method": "cash",
"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>Накладная ead93dc5</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>Товарная накладная № ead93dc5</h1>\n <p>от 19.04.2026 10:40</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>Р-200 АВ</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">25 000</td>\n \n <td style=\"text-align: right;\">25 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>2560 В</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">23 000</td>\n \n <td style=\"text-align: right;\">23 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">3</td>\n <td>6040 А1</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">50 000</td>\n \n <td style=\"text-align: right;\">50 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">4</td>\n <td>B-tic 6010</td>\n <td style=\"text-align: right;\">1</td>\n <td style=\"text-align: right;\">40 000</td>\n \n <td style=\"text-align: right;\">40 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;\">138 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>Кассир: Мухамед</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=ead93dc5c82e40d789fade98e8c9e97a';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "141012b8109644c18f538343f19532ac",
"timestamp": "2026-04-19T12:31:08.597205+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "52830c092a7a4061b65fa01ddb2b7306",
"user_name": "Мухамед",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "e4e5d1348fbf4ccb837cf467f2670534",
"items": [
{
"product_id": null,
"variant_id": "custom_1776583864767",
"name": "Р-200 АВ",
"barcode": "CUSTOM",
"quantity": 2,
"price_at_sale": "28000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "56000",
"is_custom": true
}
],
"total_amount": "56000",
"delivery_cost": "0",
"note": "",
"payment_method": "cash",
"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>Накладная 141012b8</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>Товарная накладная № 141012b8</h1>\n <p>от 19.04.2026 12:31</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>Р-200 АВ</td>\n <td style=\"text-align: right;\">2</td>\n <td style=\"text-align: right;\">28 000</td>\n \n <td style=\"text-align: right;\">56 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;\">56 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=141012b8109644c18f538343f19532ac';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
},
{
"id": "fd3da80b47164b90bb476785a3cab50b",
"timestamp": "2026-04-19T12:48:24.388656+05:00",
"type": "sale",
"status": "completed",
"original_transaction_id": null,
"user_id": "4d5d7ded5b9143f5a3f90744240e928e",
"user_name": "Шамиль",
"kassa_id": "cc2c8d6f01af453084edde7740034332",
"kassa_name": "Байсат 36.39",
"shift_id": "032d03ea26bf4887a28ae4f7f7f2b02c",
"items": [
{
"product_id": null,
"variant_id": "custom_1776584542875",
"name": "Болер 30 Медея ",
"barcode": "CUSTOM",
"quantity": 1,
"price_at_sale": "35000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "35000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776584573676",
"name": "Болер 80л Веста ",
"barcode": "CUSTOM",
"quantity": 2,
"price_at_sale": "45000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "90000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776584608309",
"name": "Кондиционер 07 авангард ",
"barcode": "CUSTOM",
"quantity": 5,
"price_at_sale": "75000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "375000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776584694673",
"name": "Телевизор 32 анройд",
"barcode": "CUSTOM",
"quantity": 5,
"price_at_sale": "49000",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "245000",
"is_custom": true
},
{
"product_id": null,
"variant_id": "custom_1776584739979",
"name": "Краштэйн LP 200",
"barcode": "CUSTOM",
"quantity": 5,
"price_at_sale": "3500",
"cost_price_at_sale": "0",
"discount_per_item": "0",
"total": "17500",
"is_custom": true
}
],
"total_amount": "762500",
"delivery_cost": "0",
"note": "",
"payment_method": "cash",
"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>Накладная fd3da80b</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>Товарная накладная № fd3da80b</h1>\n <p>от 19.04.2026 12:48</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>Болер 30 Медея </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 \n <tr>\n <td style=\"text-align: center;\">2</td>\n <td>Болер 80л Веста </td>\n <td style=\"text-align: right;\">2</td>\n <td style=\"text-align: right;\">45 000</td>\n \n <td style=\"text-align: right;\">90 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">3</td>\n <td>Кондиционер 07 авангард </td>\n <td style=\"text-align: right;\">5</td>\n <td style=\"text-align: right;\">75 000</td>\n \n <td style=\"text-align: right;\">375 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">4</td>\n <td>Телевизор 32 анройд</td>\n <td style=\"text-align: right;\">5</td>\n <td style=\"text-align: right;\">49 000</td>\n \n <td style=\"text-align: right;\">245 000</td>\n </tr>\n \n <tr>\n <td style=\"text-align: center;\">5</td>\n <td>Краштэйн LP 200</td>\n <td style=\"text-align: right;\">5</td>\n <td style=\"text-align: right;\">3 500</td>\n \n <td style=\"text-align: right;\">17 500</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;\">762 500 ₸</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=fd3da80b47164b90bb476785a3cab50b';\n } else {\n alert(\"Неверный пароль или ПИН-код\");\n }\n });\n }\n </script>\n </body>\n </html>\n "
}
]