Skip to main content

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​

NameTypeMandatoryDescription
StatementRunIdMGCEarmarkStatementRunIdYesThe 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.
InvoiceAccountMGCEarmarkAccountRelationYesThe invoice account this statement was produced for.
AsOfDateTransDateYesThe 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.
PeriodFromTransDateNoThe start of the window whose activity the statement listed.
PeriodToTransDateNoThe end of the window whose activity the statement listed.
RunDateTimeTransDateTimeNoWhen 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.
RunByUserIdNoWho produced the statement, or the batch account that did.
ModeMGCEarmarkStatementModeNoWhether this run came from the schedule or was asked for by a person.
InternalCopyNoYesIdNoWhether 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.
IncludeSettledHistoryNoYesIdNoWhether 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.
LanguageIdLanguageIdNoThe 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.
AvailableBalanceMGCEarmarkAvailableBalanceNoThe 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.
CurrencyCodeCurrencyCodeNoThe currency the printed balance was expressed in.
LineCountCounterNoHow many claim lines the statement listed. Kept beside the printed balance for the same reason: it is what the customer is holding.
IsReRunNoYesIdNoWhether 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.
ReRunOfRefRecIdNoThe run this one reproduced, so the two can be compared. A run may not name itself.