Rebuild balances
This page is for accounting managers who check that a deal's balance agrees with its accrual transactions, and for accountants and deal owners who read the result. Rebuild balances recomputes one deal's balances from its accrual transactions and control verdicts and writes the recomputed figures. Any difference from the balance Earmark was keeping is recorded as a Balance variance verdict rather than quietly corrected, and the deal owner can be alerted.
Runs: on demand, one deal at a time. It is not a batch job and cannot be scheduled. Set up by: Accounting manager (only the alert setting). Watched by: Accounting manager, and the deal owner through the alert.
Why it exists
Earmark keeps every deal balance up to date inside each movement, in the same transaction, so the balance is never waiting for a rebuild and a blank Rebuilt date is the ordinary state of a healthy deal. The rebuild is a check on that: it adds the deal's figures up again from the records they come from and tells you whether the two agree. A difference is a symptom (a movement that failed part way, or a defect in the posting path), so it is written down for someone to explain instead of being adjusted away.
When it runs
| Trigger | What runs |
|---|---|
| Rebuild balances on the Deal balances list of the Deal control workspace | A rebuild of the deal you selected. |
| The cut-over migration | A rebuild of each deal the migration loaded, as part of its tie-out (Migrate deals in force). |
To run it: open Earmark > Workspaces > Deal control, select a deal on the Deal balances list, and select Rebuild balances. It runs straight away in your session.
When to use it: nothing in the product calls for a routine rebuild. Use it when a figure needs explaining: a deal whose headroom or quantity to date looks wrong, a reconciliation difference you are tracing to a deal, or after a failed movement has been fixed. The period-end process includes it for the deals you sign off (stage 7 of Close a period). Run it when the accrual event processor is not working through that deal's events and nobody is posting movements on the deal: the rebuild adds the figures up before it starts writing and does not lock the deal while it adds, so a movement saved in between can show as a variance that is not real.
Settings
| Setting | Where | Default | Effect |
|---|---|---|---|
| Alert on balance rebuild variance | Earmark > Setup > Earmark parameters, Accrual posting tab | Yes | On: when a rebuild finds a variance, the deal owner gets an Action center notification. Off: nobody is notified. The variance is recorded either way. |
| Deal owner | The deal | The person who created the deal | The person the alert goes to. A deal with no owner sends no alert. |
What it does
- Reads the maintained figures: the deal's net accrued amount and its quantity to date.
- Adds the deal up again from its accrual transactions, by movement type, posting status and counterparty. An accrual whose journal has not posted counts as Accrued, journal pending. The vendor side of a supplier-funded mirror is left out. Quantities a control stopped (below the qualifying quantity, maximum quantity reached, cap reached) leave a verdict and no transaction, so they are counted into the quantity to date from the control verdicts; for a quantity below the qualifying minimum, the verdicts also give the value held back until the minimum is crossed.
- Writes the recomputed figures to the deal's balance row and to each counterparty's, in one transaction, and stamps Rebuilt and Rebuild variance on the deal row.
- Records a variance: if the net accrued amount differs, a Balance variance verdict at deal level; if the quantity to date differs, a second Balance variance verdict for the quantity.
- Alerts the deal owner, after the commit, with "Earmark balance variance on deal ...", when there is a variance, Alert on balance rebuild variance is on and the deal has an owner.
- Reports "Balances for deal ... were recomputed from its accrual transactions and ... balance rows were written. The maintained net accrued amount was ..., the recomputed amount is ... and the difference is ...", and each verdict as a warning.
It does not recompute the settled figure, which is worked out from the open claim lines each time it is read and has nothing stored to compare, nor the funding-rule balances a supplier-funded mirror keeps.
Before it can run
- An Earmark module is on in the company.
- You hold the Accounting manager role (Rebuild Earmark balances and record reconciliations duty). The Deal balances list itself is readable by many roles; the button is not.
- A deal is selected. Started without one, it refuses with "Rebuild balances was started without a deal. Select a deal in the Deal balances list on the Deal control workspace and choose Rebuild balances there. ..."
What goes in and what comes out
| In | Out |
|---|---|
| The deal's accrual transactions | The deal-level and counterparty-level balance rows, rewritten |
| The deal's control verdicts for quantities a control stopped | Rebuilt and Rebuild variance on the deal row |
| The balance Earmark was keeping, for comparison | Balance variance verdicts, when the figures disagree |
| An Action center notification to the deal owner, when set | |
| The result in the infolog |
Watching it
- Deal balances list on Deal control: Rebuilt (when it last ran) and Rebuild variance (the amount difference it found). See Page reference: Deal balances.
- Breaches list on Deal control: the Balance variance verdicts, while the deal is approved. The verdict register keeps them as a record; Resolve on that list applies only to credit-without-quantity reviews, so a Balance variance row stays on the list. See Page reference: Breaches.
- Action center of the deal owner: "Earmark balance variance on deal ...", with the verdict text.
- The control verdicts can also be read through the data entity whose public collection is
MGCEarmarkControlVerdicts(see the entity reference). As shipped, only the Sales manager role can read that entity; an accounting manager who needs it is given the access by the security administrator.
A rebuild writes no timeline row, no workbench row and no business event.
When it fails
A variance is a verdict, not a failure. The rebuild did what it was asked: the recomputed figures are written and the difference is recorded for someone to explain. To look into it:
- Select Open transactions on the Deal balances list to see the movements behind the deal.
- Check the execution exceptions workbench (Earmark > Inquiries and reports > Earmark execution exceptions) for movements that failed part way, and the Journals pending review tile for journals still waiting.
- Compare with an accrual reconciliation for the period.
A malfunction (for example a lock that could not be taken) shows as an error in the infolog. The rebuild runs in one transaction, so nothing is written; run it again.
Running it again is safe. The rebuild replaces the stored figures with the recomputed ones; it never adds to them. A second run straight after the first writes the same figures and finds no variance, because the first run already brought the balance in line. That is also why a variance is reported only once: read it when it appears.
Effects on the rest of Earmark
- The cap and headroom checks on later movements, and the Deals near cap and Deals over cap tiles, read the rebuilt balance.
- Quantity to date decides when a qualifying minimum is crossed and when a maximum quantity stops further accruals, so a corrected quantity can change what later movements do.
- Claims are not touched: the settled figure is not part of the rebuild.
- The ledger is not touched: the rebuild posts nothing and creates no journal.
Related
- I want to rebuild deal balances and act on a variance alert
- Watch deal money on the Deal control workspace
- Reconcile accruals against the general ledger
- Tell a verdict from a failure
- Close a period
- Migrate deals and claims already in force, which rebuilds each migrated deal as part of its tie-out
- Take an update
- Closing a month when trade accruals went wrong
- Accrual event processor
- Configuration reference
- Security reference