Skip to main content

MGCEarmarkClaimStatementRunEntity

The read-only export of the Earmark claim statement run log - which customer was sent a statement, as of which date, over which period, by whom, and whether the run was a re-run of an earlier one. A row exists only where a statement actually rendered: a render failure produces an execution exception in the workbench and no log row, so counting rows counts statements that reached a destination rather than attempts. The run identifier is internal and is never printed on the customer copy - the statement is regenerated from live data and has no document number - but the run log is the only record that an issued statement existed, and re-running a statement as of a past date reads its period and as-of date from here. These rows are exempt from retention for that reason. The internal-copy flag distinguishes the copy that carries the accrued-not-yet-claimed and general-ledger sections from the customer copy that never does. Implements requirement D14.

  • Public collection name: MGCEarmarkClaimStatementRuns
  • Primary key: StatementRunId

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.
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.
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.
ReRunOfStatementRunIdMGCEarmarkStatementRunIdYesThe 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.
RunByUserIdNoWho produced the statement, or the batch account that did.
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.

Mappings​

Entity fieldData sourceField
StatementRunIdMGCEarmarkClaimStatementRunStatementRunId
InvoiceAccountMGCEarmarkClaimStatementRunInvoiceAccount
AsOfDateMGCEarmarkClaimStatementRunAsOfDate
PeriodFromMGCEarmarkClaimStatementRunPeriodFrom
PeriodToMGCEarmarkClaimStatementRunPeriodTo
ModeMGCEarmarkClaimStatementRunMode
InternalCopyMGCEarmarkClaimStatementRunInternalCopy
AvailableBalanceMGCEarmarkClaimStatementRunAvailableBalance
CurrencyCodeMGCEarmarkClaimStatementRunCurrencyCode
LineCountMGCEarmarkClaimStatementRunLineCount
IsReRunMGCEarmarkClaimStatementRunIsReRun
ReRunOfStatementRunIdReRunOfRunStatementRunId
RunByMGCEarmarkClaimStatementRunRunBy
RunDateTimeMGCEarmarkClaimStatementRunRunDateTime