MGCEarmarkClaimStatementRun
One log entry per claim statement that actually rendered - what was asked for, when, by whom, as of which date and what the available balance came to. A row is written ONLY on a successful render: a failure produces an execution exception and no log row, so a row here is a claim that a statement reached a person. The statement itself is regenerated from data and never archived, so this table is the only record that one was ever produced. It is retention-exempt and has no purge path.
Fields
| Name | Type | Mandatory | Description |
|---|---|---|---|
StatementRunId | MGCEarmarkStatementRunId | Yes | The run's identifier, issued from the statement run number sequence. IT IS NOT A STATEMENT NUMBER AND IS NEVER PRINTED ON THE CUSTOMER COPY. The statement is regenerated from data - there is no archive and no statement number - so this id identifies the run internally, for support and for re-runs, and nothing more. Putting it on the layout because it looks like a document number would quietly give the product an identifier it has promised not to have. |
InvoiceAccount | MGCEarmarkAccountRelation | Yes | The invoice account this statement was produced for. |
AsOfDate | TransDate | Yes | The date the balances were read as at. Because nothing is archived, reproducing an issued statement means re-running it as of this date, which is why it is a first-class column rather than a run parameter. |
PeriodFrom | TransDate | No | The start of the window whose activity the statement listed. |
PeriodTo | TransDate | No | The end of the window whose activity the statement listed. |
RunDateTime | TransDateTime | No | When the statement was produced - our clock, as distinct from the as-of date the figures were read at. A re-run of an old statement has a recent run time and an old as-of date, and the pair is what tells them apart. |
RunBy | UserId | No | Who produced the statement, or the batch account that did. |
Mode | MGCEarmarkStatementMode | No | Whether this run came from the schedule or was asked for by a person. |
InternalCopy | NoYesId | No | Whether this was the internal copy rather than the customer's. The internal copy is the one that carries the license watermark when a license has lapsed; the customer's copy never does, because a lapse is a banner and a watermark, never a block. |
IncludeSettledHistory | NoYesId | No | Whether this run included the settled-history detail on the statement. Recorded so a re-run of this row (Re-run as of) reproduces the same document rather than defaulting the choice. |
LanguageId | LanguageId | No | The language the statement was rendered in. Recorded so a re-run of this row (Re-run as of) prints in the same language rather than defaulting to the caller's own. |
AvailableBalance | MGCEarmarkAvailableBalance | No | The available balance the statement actually printed, kept so a later conversation can start from the same figure. It is evidence of what was sent, and nothing that computes a live balance reads it. |
CurrencyCode | CurrencyCode | No | The currency the printed balance was expressed in. |
LineCount | Counter | No | How many claim lines the statement listed. Kept beside the printed balance for the same reason: it is what the customer is holding. |
IsReRun | NoYesId | No | Whether this run reproduced an earlier statement rather than producing a new one. A re-run is how an issued statement is recovered, because nothing is archived. |
ReRunOf | RefRecId | No | The run this one reproduced, so the two can be compared. A run may not name itself. |