BYstudio
RU/EN

Automated management reports: connecting CRM and accounting data

A morning report should help a manager assign a stalled order, check a receipt or spot a late data source. Each number needs a definition, a reporting period and a route back to its source record. Start with one management decision and a few metrics. A dashboard covering every department adds coordination before it can become a useful working tool.

Start with the management decision

Choose a recurring question that someone currently answers by hand. For example: which confirmed orders need attention this morning, and why? That question determines the report and the systems it needs.

One workflow
A first release can cover confirmed orders through fulfillment and receipt reconciliation. Advertising enquiries and other departments can follow as separate phases.
An action for each exception
Show the owner, reason and a link to the order. A total that cannot be traced to its members does little to resolve a problem.
Reporting cadence
Agree when the report runs and when source data must arrive. If the accounting export finishes later, the early summary needs a preliminary status.

The first phase is ready when the manager can inspect the records behind a metric and assign the next action for each exception.

Agree a metric dictionary before joining tables

Sales may mean won deals, confirmed orders, shipments or cash receipts. Define each metric separately and name the person who approves changes.

Accepted enquiries
Unique durably saved enquiries by identifier. Replaying the same enquiry does not create another one. An enquiry is not yet an order.
Confirmed orders
Orders first confirmed within the reporting window. Count and value come from an agreed source; cancellations and later corrections are shown separately.
Receipts and refunds
Unique posted transactions with a date, currency and identifier. Adding an order value to its payment double-counts different facts. A receipt for an older order still belongs to the receipt period.
Website events
Views, clicks and analytics goals describe browser activity. Durable intake is evidenced by a server record. Orders, receipts and profit each need their own evidence.

The worksheet records each metric’s unit, formula, exclusions, source, record key, event time, load time and owner.

Choose the authoritative source for each fact

The CRM may own the order and its stage, accounting the payment, and a warehouse the actual shipment. Matching names or amounts is not a reliable join key.

Record mapping
Document the identifier mapping. An order with no matching record becomes an exception. Several payments against one order remain distinct transactions.
Replays and changes
An export replay with the same key updates a record under the version rules rather than adding the amount again. Conflicting values remain visible for review.
Cancellation and deletion
Agree how the source communicates cancellations, corrections and deletions. Restating an older period needs a reason and a new report version.
Source completeness
Record row counts and export boundaries. An unavailable export does not mean zero transactions. PostgreSQL distinguishes counting rows from counting values; a sum over no rows returns NULL [S2].

A correctly calculated total can still describe an incomplete selection. Check source completeness before presenting a definitive result.

Separate event time from arrival time

Set the time zone and closed calendar window first. Compare yesterday with the previous full day, and seven full days with the preceding seven. Keep the current incomplete day separate.

Business event time
Use the agreed confirmation time for an order and posting time for a receipt. Load time establishes freshness and cannot replace event time.
Late records
If yesterday’s transaction arrives after publication, retain the original summary and issue a restatement. Show the added records and the change in total.
Historical refresh
The recheck window depends on actual source delays. Microsoft documents refreshing recent partitions while retaining history separately [S1]. A correction outside that window needs an explicit historical refresh.
Comparisons
Rates require compatible definitions and reporting windows. A zero denominator leaves a rate undefined. Today’s receipts for older orders do not establish the conversion of today’s orders.

The report header should show its window, time zone, build time, source freshness and whether it is preliminary, complete or restated.

Worked example: an export replay and a late receipt

All records below are fictional. This is a manually worked teaching example, not a client implementation result. The window is 16 November 2026, 00:00-24:00 Moscow time, excluding the start of 17 November. Amounts in this example are in RUB.

CRM orders
O-101 was confirmed on 16 November for 10000; O-102 on 16 November for 6000; O-099 on 15 November for 8000. The 16 November metric has 2 newly confirmed orders totaling 16000. O-099 is excluded.
Initial transaction summary
P-1: receipt of 10000 for O-101; a replay of P-1 in the export; R-1: refund of 2000 for O-099. There are 2 unique transactions: receipts of 10000, refunds of 2000, difference of 8000. This is neither revenue nor profit.
Late transaction
P-2: a receipt of 3000 for O-102, posted on 16 November but loaded after the morning summary on 17 November. The restated version shows receipts of 13000, refunds of 2000 and a difference of 11000. The order count stays at 2.
Reconciliation
The P-1 replay, P-2 delay and refund against an older order are visible separately. These rows do not establish profit, total receivables or conversion: the required complete data is absent.

The download preserves the source rows and both versions of the calculation. Review it with staff before connecting operational databases.

Download the dictionary, example rows and calculation, ZIP

Test replays, failures and traceability

Start acceptance with a small dataset and an independently agreed expected result. Repeatable totals matter alongside reconciliation of the underlying records.

Manual reference
A staff member independently calculates a few orders and transactions. Compare identifiers, amounts, periods and exclusion reasons. A matching grand total alone can conceal offsetting errors.
Replay and late arrival
Load the same selection twice: the second run leaves totals unchanged. Then add a late record and check the restated report and its change history.
Unavailable source
Disable a test export from one source. The report should show incomplete data and the last successful load. It must not send a confident complete summary in that state.
Access and handover
Managers see the required amounts; staff see their assigned exceptions. Hand over the dictionary, reconciliation rules, refresh history, recovery procedure and formula-change instructions.

Use an authorized copy or synthetic records for acceptance. Report delivery and access permissions are agreed separately.

A bounded first phase: one report with reconciliation

The initial discussion is free. A full audit, pilot, development and support have separately agreed scope and price. A first phase can use authorized exports and a manual reference before connecting systems.

Prepare for the discussion
Describe the management decision, sources, a few required metrics and the current discrepancy. A fictional example is enough to begin.
What the estimate covers
Fields and access, record mapping, required history, exception handling, acceptance and staff handover. The number of sources and identifier quality affect the work.
Project evidence
Krest-NN shows Bitrix24 stages and data configuration; DOROGA shows orders connected to operational records. These cases provide data context and do not establish deployment of the report described here.

Readiness is checked against the report and its source rows. Automation alone does not establish increased sales.

Review one management report

Describe the management decision, data sources and required metrics. A fictional example is enough for an initial discussion. Agree the transfer of operational data separately.

Download the report acceptance checklist, TXT

Official sources

Checked 17 November 2026. The fictional example and worksheet were prepared for this guide.

Tell us what
you need to build.

The initial task discussion is free. Describe it in your own words. A BYstudio specialist or Yan Bunin will respond.

For example: @username, a phone number or name@company.com

Where does it start and what needs to happen next?

Add a detail (optional)

Please do not send passwords, tokens, customer databases or bank files.

What happens after you send it

We read the description, clarify the goal and suggest a first-phase scope. A few sentences are enough to start.