Skip to main content

MGCEarmarkStatementTmp

One claim statement, section by section, as MGCEarmarkStatementDataProvider assembled it.

Fields​

NameTypeMandatoryDescription
SectionIntegerNoWhich section of the statement this row belongs to - summary, available, settled this period, reversed and adjusted, the two internal-only sections, or the totals control. The renderer reads the table in section then sort order, which is the order the provider built it in.
SortOrderIntegerNoThe row's position within its section, as the provider produced it. The table carries no index precisely so that insertion order is preserved; an index would silently re-sort a document.
LineTypeIntegerNoWhat kind of row this is within its section: an opening balance, an exchange rate movement, a detail line, a deal subtotal, a control figure and so on. It is what lets one layout treat a subtotal differently from the lines above it.
CaptionLabelIdMGCEarmarkNaturalKeyNoThe label id behind the caption, stored beside the rendered text. The id survives translation and is what a saved view or a test assertion keys on; the text is what a person reads.
CaptionMGCEarmarkReasonNoteNoThe rendered caption for a summary, subtotal or control row.
InvoiceAccountMGCEarmarkAccountRelationNoThe paying entity the statement is addressed to.
OrderingAccountMGCEarmarkAccountRelationNoThe account that ordered the goods this line's deal money was earned on. In a chain it differs from the invoice account, and a statement that showed only the payer would leave the customer unable to reconcile it against their own stores.
ClaimIdMGCEarmarkClaimIdNoThe claim the line belongs to.
LineNumLineNumNoThe line's number within its claim. It never changes after the line is created, because the reference formed from it has already been printed and used as journal text.
ClaimReferenceMGCEarmarkClaimLineRefNoThe customer-facing reference, claim id then line number, produced by the one function that produces it everywhere.
ClaimLineRefRecIdNoThe claim line's internal record identifier, for a report that needs to drill back.
DealIdMGCEarmarkDealIdNoThe deal the money was earned under. The available section is grouped by deal with a subtotal for each.
DealGroupIdMGCEarmarkDealGroupIdNoThe deal group, when the deal belongs to one.
DealNameMGCEarmarkDealNameNoThe deal's name, for a customer who knows the program by name rather than by number.
ItemIdMGCEarmarkItemRelationNoThe item the deal money was earned on.
QtyMGCEarmarkDealQtyNoThe quantity the claim line covers, in the unit shown beside it.
QtyUnitUnitOfMeasureSymbolNoThe unit the quantity is expressed in. It is the deal's unit, which is not necessarily the sales unit.
RateMGCEarmarkAccrualAmountNoThe rate the deal money was calculated at, as it was frozen when the commitment was built.
RateUnitUnitOfMeasureSymbolNoThe unit the rate is per.
CustomerPOMGCEarmarkNaturalKeyNoThe customer's own purchase order number, copied onto the claim line when the claim was generated. It is copied rather than looked up, because the source document may have moved on since.
SalesIdMGCEarmarkNaturalKeyNoThe sales order the goods moved on, copied onto the claim line at generation.
InvoiceIdMGCEarmarkNaturalKeyNoThe invoice the goods were billed on, copied onto the claim line at generation.
InvoiceDateTransDateNoThe date of that invoice.
PackingSlipIdMGCEarmarkNaturalKeyNoThe packing slip the goods shipped on, copied onto the claim line at generation.
ShipDateTransDateNoThe date the goods shipped.
ApprovalVoucherVoucherNoThe ledger voucher the customer credit was posted on. One voucher per claim line, which is what lets a customer tie a credit to a line.
ApprovalDateTransDateNoThe date the claim was approved and the credit posted.
TransDateTransDateNoThe date this row is about, which differs by section: the invoice date on an available line, the settlement date on a settled line, the movement date on a reversal.
AmountCurMGCEarmarkClaimAmountNoThe row's amount in the deal's own currency, shown alongside the statement currency so the customer can see both.
DealCurrencyCodeCurrencyCodeNoThe currency the deal was denominated in.
AmountStatementMGCEarmarkClaimAmountNoThe row's amount converted into the statement currency at the as-of date's rate.
StatementCurrencyCodeCurrencyCodeNoThe currency the statement is presented in, which is the customer's currency unless the run overrode it.
ExchRateExchRateNoThe rate that produced the conversion, stored beside the amount it produced. On a statement this is not bookkeeping detail: it is the only way a customer can check our arithmetic against their own, and the only way a re-run can be shown to have used the same rate as the original, because there is no archived copy to compare against.
RemainingCurMGCEarmarkRemainingAmountNoHow much of the credit is still open, read live rather than stored. This product stores no settled figure anywhere; it is derived on read from the customer transaction and its settlements.
SettledCurMGCEarmarkClaimAmountNoHow much of the credit has been settled, derived the same way.
LastSettlementDateTransDateNoWhen the credit was last settled against.
IsSubtotalNoYesNoWhether this row is a subtotal or control figure rather than a detail line.
IsNegativeDealNoYesNoWhether this line came from a negative deal, which reduces rather than increases what the customer is owed. Negative deals are netted into the deal subtotal rather than excluded, so the customer can see what reduced their balance and why.
IsReListedNoYesNoWhether this line has appeared on an earlier statement. An unelected claim simply stays open and re-lists; nothing expires, nothing escalates, and there is no reply-by date.
PreferenceMGCEarmarkSettlementPreferenceNoWhat the customer has asked for on this line, if anything. None is a real state meaning nobody has said.
DaysSinceApprovalMGCEarmarkAgingBucketDaysNoHow long the credit has been open at the as-of date, which is what the aging buckets are cut from.
LedgerAccountMGCEarmarkNaturalKeyNoThe journal the credit was posted from. Internal copy only.
DetailMGCEarmarkReasonNoteNoFree text explaining the row - the movement id behind a reversal, or the movement type behind an adjustment.