Проведення
- Запит
GET /api/v1/q/entry?id=17f1cd83-ccc2-4dd4-a68e-19f03e938d78- Командний рядок
pnpm ek q entry --id 17f1cd83-ccc2-4dd4-a68e-19f03e938d78- Рядків
- 1
{
"rows": [
{
"id": "17f1cd83-ccc2-4dd4-a68e-19f03e938d78",
"transaction_date": "2026-08-17",
"decided_at": "2026-10-05T05:57:05.650Z",
"period_id": "2026-08",
"memo": "Випуск за ВЗ-2026-01003: DET-0007 × 2",
"reverses_entry_id": null,
"event_id": "8e8b9e9f-f0b7-44c8-83dd-e58cebe6e7b6",
"kind": "produced",
"actor_id": "key:71edce39-c164-4b09-b5ff-c74e8b9b4d46",
"action_name": "zbirka.produce_order",
"action_version": 2,
"idempotency_key": "api:71edce39-c164-4b09-b5ff-c74e8b9b4d46:world7%3Aout%3A%D0%92%D0%97-2026-01003%3A2026-08-17:ec3f0408a2e4783f",
"source_ref": null,
"payload": "{\"order_id\":\"1711ae3d-6b2d-4a28-840f-01fed2f8b6a2\",\"order\":\"ВЗ-2026-01003\",\"item_id\":\"25840c4a-9c8d-4650-adaf-a92c1997c1e1\",\"code\":\"DET-0007\",\"version\":1,\"qty\":2,\"cost\":64000,\"materials\":44000,\"labour\":20000,\"used\":[{\"lineNo\":1,\"itemId\":\"1a879d00-64e7-40c4-b82f-15213ebcb19e\",\"qty\":4000,\"cost\":44000,\"substitute\":false}]}",
"rule_hash": null,
"rule_package": null,
"rule_version": null,
"period_status": "CLOSED",
"actor_name": "ключ «Дзюба Олег Миколайович»",
"presenter_id": null,
"presenter_name": null,
"reversed_by": null,
"reversed": 0
}
]
}Рядки
- Запит
GET /api/v1/q/entry_lines?id=17f1cd83-ccc2-4dd4-a68e-19f03e938d78- Командний рядок
pnpm ek q entry_lines --id 17f1cd83-ccc2-4dd4-a68e-19f03e938d78- Рядків
- 10
{
"rows": [
{
"line_no": 1,
"account_code": "23",
"account_name": "Виробництво",
"side": "DR",
"measure": "UAH",
"amount": 20000,
"party_id": null,
"party_name": null,
"item_id": null,
"memo": "Праця й накладні за нормою, ВЗ-2026-01003",
"document_id": null,
"document_number": null
},
{
"line_no": 2,
"account_code": "91",
"account_name": "Загальновиробничі витрати",
"side": "CR",
"measure": "UAH",
"amount": 20000,
"party_id": null,
"party_name": null,
"item_id": null,
"memo": "Праця й накладні за нормою, ВЗ-2026-01003",
"document_id": null,
"document_number": null
},
{
"line_no": 3,
"account_code": "23",
"account_name": "Виробництво",
"side": "DR",
"measure": "UAH",
"amount": 44000,
"party_id": null,
"party_name": null,
"item_id": "1a879d00-64e7-40c4-b82f-15213ebcb19e",
"memo": "Списання у виробництво, рядок 1",
"document_id": null,
"document_number": null
},
{
"line_no": 4,
"account_code": "201",
"account_name": "Сировина й матеріали",
"side": "CR",
"measure": "UAH",
"amount": 44000,
"party_id": null,
"party_name": null,
"item_id": "1a879d00-64e7-40c4-b82f-15213ebcb19e",
"memo": "Списання у виробництво, рядок 1",
"document_id": null,
"document_number": null
},
{
"line_no": 5,
"account_code": "23",
"account_name": "Виробництво",
"side": "DR",
"measure": "CM2",
"amount": 4000,
"party_id": null,
"party_name": null,
"item_id": "1a879d00-64e7-40c4-b82f-15213ebcb19e",
"memo": "Списання у виробництво, рядок 1",
"document_id": null,
"document_number": null
},
{
"line_no": 6,
"account_code": "201",
"account_name": "Сировина й матеріали",
"side": "CR",
"measure": "CM2",
"amount": 4000,
"party_id": null,
"party_name": null,
"item_id": "1a879d00-64e7-40c4-b82f-15213ebcb19e",
"memo": "Списання у виробництво, рядок 1",
"document_id": null,
"document_number": null
},
{
"line_no": 7,
"account_code": "201",
"account_name": "Сировина й матеріали",
"side": "DR",
"measure": "UAH",
"amount": 64000,
"party_id": null,
"party_name": null,
"item_id": "25840c4a-9c8d-4650-adaf-a92c1997c1e1",
"memo": "Випуск продукції за собівартістю",
"document_id": null,
"document_number": null
},
{
"line_no": 8,
"account_code": "23",
"account_name": "Виробництво",
"side": "CR",
"measure": "UAH",
"amount": 64000,
"party_id": null,
"party_name": null,
"item_id": "25840c4a-9c8d-4650-adaf-a92c1997c1e1",
"memo": "Випуск продукції за собівартістю",
"document_id": null,
"document_number": null
},
{
"line_no": 9,
"account_code": "201",
"account_name": "Сировина й матеріали",
"side": "DR",
"measure": "EA",
"amount": 2,
"party_id": null,
"party_name": null,
"item_id": "25840c4a-9c8d-4650-adaf-a92c1997c1e1",
"memo": "Випуск продукції за собівартістю",
"document_id": null,
"document_number": null
},
{
"line_no": 10,
"account_code": "23",
"account_name": "Виробництво",
"side": "CR",
"measure": "EA",
"amount": 2,
"party_id": null,
"party_name": null,
"item_id": "25840c4a-9c8d-4650-adaf-a92c1997c1e1",
"memo": "Випуск продукції за собівартістю",
"document_id": null,
"document_number": null
}
]
}