Plank help · updated 2026-11-20

Отчёт о нагрузке по 1С: работа в документах по клиентам и сотрудникам

Как отчёт о нагрузке ночью по очереди читает все клиентские базы, взвешивает документ по полям, заполненным человеком, отделяет автоматические документы и показывает нагрузку фирмы по клиентам и по бухгалтерам — только агрегаты.

Agents: fetch the raw markdown of this page at /ru/help/1c-load-report.md

1C load report

The load report answers one question for an accounting firm: how much work in documents does each client base take, and who does it. It is the volume of work in documents — not its quality and not hours. The page says so; say so too when you explain a number.

Kit: 1c-load-report. Scripts under scripts/1c/load-report/, data under synced_data/1c/load-report/, page dashboards/1c/load-report.html.

Read-only, at night, one base at a time

  • Nothing here writes to 1C.
  • The firm's bases are read only at night, 17:00–01:00 UTC (Almaty 22:00–06:00), one after another, by night.py on a schedule. Do not read a client base during the day to "check quickly" — the accountants are working in it.
  • A base that cannot be read (busy, login refused, the night ran out) is named with its reason on the page, and is not retried the same night. The firm's month is marked incomplete until every base is read.
  • Last month is re-read every night until the 25th of the next month (documents entered back-dated, the reporting deadline), then closed. To re-read a closed month: night.py --refresh YYYY-MM. A failed re-read keeps the earlier read.
  • probe.py refuses to start by day. --daytime is for a manual measurement the accounting lead has allowed — never on your own.
  • Logins come from «Доступы» through the standard helper. No file holds a password. A refused login is listed as a login to update.

What the files are

filewhat
bases.jsonevery base of the firm: base_key (Fresh area, e.g. ea900-100001) or odata_url + vault_label, its title, optional tariff (₸ per month)
assignment.jsonbase identifier → accountant(s); never keyed by name
bases/<base>-<month>.jsonwhat one night read: counts and field names, no values
runs/<night>-<month>.jsonwhat each night started, read, did not read, and how long it took

The weight of a document

Weight = filled header fields + the filled fields of every row. The rules are the kit's rules.json and are shown on the page under «Как считается вес»:

  • empty values (empty reference, 01.01.0001, blank text, zero) and yes/no flags do not count; nor do service fields and fields 1C computes (sums, VAT, totals);
  • a field with the same value in 95 % of a kind's documents in the month is 1C's default and does not count (from 10 documents of a kind; below that only the usual defaults — organisation, currency, responsible, warehouse… — are dropped);
  • a document made «на основании» weighs only the fields that differ from its basis;
  • rows beyond the kind's cap (p90 of the measurement) add nothing;
  • kinds whose rows a button fills (payroll, fund transfers, reconciliation act…) count the header and the number of rows;
  • bases are compared only over the fields every base with documents of the kind publishes; the rest are listed.

Automatic documents are counted apart and never credited to an accountant: documents with Plank's anchor, «Создан автоматически…», client-bank loads (by «Комментарий»), ESF/AVR exchange, routine operations and month closing. Opening balances are a one-time load, shown apart again.

1C keeps no mark of a client-bank load on the document itself, so a bank document without a «Комментарий» saying so counts as manual. The page states this.

By accountant

From assignment.json. To build it from the firm's own table «client → accountant»:

python3 scripts/1c/load-report/assign.py --from answer.tsv            # dry run: what matches, what does not
python3 scripts/1c/load-report/assign.py --from answer.tsv --write    # then report.py

A client name must match exactly one base title; anything else is printed and left out — ask the firm, never guess. Empty file → the page says «закрепление не задано»; a file that does not parse → «файл закрепления не читается — показан вид по клиентам», and the error with its line is in the output. A base with several accountants is always split equally («общая база (N)»); a base nobody holds is the row «не закреплено». The accountants add up to the firm's total.

Commands

python3 scripts/1c/load-report/night.py                    # the schedule: last month, then the tables
python3 scripts/1c/load-report/night.py --month 2026-10    # a given month
python3 scripts/1c/load-report/night.py --refresh 2026-08  # re-read a closed month
python3 scripts/1c/load-report/report.py                   # rebuild the tables (after a new assignment.json)
python3 scripts/1c/load-report/report.py --dry-run         # totals only, writes nothing

report.py writes the app-data tables load_months, load_bases, load_kinds, load_people, load_runs, load_rules: kind, month, base, documents, rows, weight, manual or automatic, the assigned accountant. No amount, counterparty, purpose or field value — do not add any to the page or to a reply.