Проведення
- Запит
GET /api/v1/q/entry?id=cb916fef-df53-42a9-9c0d-1d47786c72fe- Командний рядок
pnpm ek q entry --id cb916fef-df53-42a9-9c0d-1d47786c72fe- Рядків
- 1
{
"rows": [
{
"id": "cb916fef-df53-42a9-9c0d-1d47786c72fe",
"transaction_date": "2026-04-13",
"decided_at": "2026-10-05T01:22:28.926Z",
"period_id": "2026-04",
"memo": "Випуск за ВЗ-2026-00380: DET-0006 × 2",
"reverses_entry_id": null,
"event_id": "5f1c515c-00f1-47f3-86fc-c34b5b5c0792",
"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-00380%3A2026-04-13:530a94b5aa7362d0",
"source_ref": null,
"payload": "{\"order_id\":\"e20152a7-8755-4466-97cb-895a7996aa48\",\"order\":\"ВЗ-2026-00380\",\"item_id\":\"8c57e2a8-790a-4a33-b1ed-5df62f1eb137\",\"code\":\"DET-0006\",\"version\":1,\"qty\":2,\"cost\":75000,\"materials\":55000,\"labour\":20000,\"used\":[{\"lineNo\":1,\"itemId\":\"1a879d00-64e7-40c4-b82f-15213ebcb19e\",\"qty\":5000,\"cost\":55000,\"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=cb916fef-df53-42a9-9c0d-1d47786c72fe- Командний рядок
pnpm ek q entry_lines --id cb916fef-df53-42a9-9c0d-1d47786c72fe- Рядків
- 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-00380",
"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-00380",
"document_id": null,
"document_number": null
},
{
"line_no": 3,
"account_code": "23",
"account_name": "Виробництво",
"side": "DR",
"measure": "UAH",
"amount": 55000,
"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": 55000,
"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": 5000,
"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": 5000,
"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": 75000,
"party_id": null,
"party_name": null,
"item_id": "8c57e2a8-790a-4a33-b1ed-5df62f1eb137",
"memo": "Випуск продукції за собівартістю",
"document_id": null,
"document_number": null
},
{
"line_no": 8,
"account_code": "23",
"account_name": "Виробництво",
"side": "CR",
"measure": "UAH",
"amount": 75000,
"party_id": null,
"party_name": null,
"item_id": "8c57e2a8-790a-4a33-b1ed-5df62f1eb137",
"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": "8c57e2a8-790a-4a33-b1ed-5df62f1eb137",
"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": "8c57e2a8-790a-4a33-b1ed-5df62f1eb137",
"memo": "Випуск продукції за собівартістю",
"document_id": null,
"document_number": null
}
]
}