document-posting

Designs and fixes 1C:Enterprise document posting logic, register movements, and balance control.

1|2|Updated Jul 19, 2026
One-click install
npx skills add https://github.com/IngvarConsulting/unica-marketplace --skill document-posting-ingvarconsulting
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: document-posting
Source: https://github.com/IngvarConsulting/unica-marketplace/tree/main/plugins/unica/skills/document-posting
Command: npx skills add https://github.com/IngvarConsulting/unica-marketplace --skill document-posting-ingvarconsulting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Designing or repairing document posting in 1C:Enterprise configurations is error-prone: choosing the wrong register set, mixing real-time and regular posting branches, or placing balance control in the wrong transaction stage leads to negative balances, deadlocks, and incorrect movements. This Skill guides the design, review, and repair of posting logic against platform standards. ## Core Features & Use Cases - Posting design workflow: Walks through naming accounting subjects, inspecting documents and registers via Unica MCP tools, splitting real-time versus regular branches, and fixing the std661 write-and-control order. - Standards-grounded review checklist: Applies standards 450, 477, 603, 661, 663, 664 and diagnostics АПК:105, АПК:123, АПК:226, АПК:227 to verify register declarations, privileged-mode flags, lock order, and unposting symmetry. - Use Case: A developer needs to add stock balance control to a sales invoice posting handler. The Skill directs inspection of the document and accumulation register metadata, places the controlled register write last with БлокироватьДляИзменения = Истина, runs the negative-balance query after that write, and verifies posting, unposting, and re-posting behavior. ## Quick Start Ask the assistant to review or design the posting handler of a specific 1C document, for example to add negative-balance control to a goods write-off document.

Frequently Asked Questions about document-posting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add negative balance control to a 1C document posting handler?▼

Write the controlled register last with БлокироватьДляИзменения = Истина, then run the negative-balance query after that write at the end of the transaction. Uncontrolled registers go earlier with БлокироватьДляИзменения = Ложь in a stable order, following the std661 shape.

How to choose registers for a 1C document posting design?▼

Name each accounting subject the document affects first; each subject becomes its own register, not a column on an existing one. Inspect candidate registers for dimensions, resources, and periodicity, and ensure dimensions are meaningful for both receipt and expense movements.

What is the difference between real-time and regular posting in 1C?▼

The platform picks the branch by comparing the document date with the session date, exposed as РежимПроведенияДокумента.Оперативный. The real-time branch is the usual place for availability checks; the regular branch must stay correct on its own for backdated entry and initial data load.

Why is calling Записать() inside ОбработкаПроведения flagged as an error?▼

The platform writes record sets implicitly when the handler returns, so an explicit Записать() is diagnostic АПК:105 under standard 450. The sanctioned exception is the balance-control shape, where the controlled register must be written before its control query runs.

When should balance control be skipped during document posting?▼

Skip control where it cannot fail: a receipt document only increases balances, and re-posting cannot write off more than the first posting already did. Control only the balances that can actually go negative to avoid unnecessary locks.

Can posting be disabled to model a document draft or lifecycle stage?▼

No. Standard 603 prohibits disabling posting to model drafts or lifecycle stages. An unposted document is already a draft, and lifecycle stages should be implemented as statuses on a posted document.