MGCEarmarkStatementTmp
One claim statement, section by section, as MGCEarmarkStatementDataProvider assembled it.
Fields
| Name | Type | Mandatory | Description |
|---|---|---|---|
Section | Integer | No | Which 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. |
SortOrder | Integer | No | The 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. |
LineType | Integer | No | What 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. |
CaptionLabelId | MGCEarmarkNaturalKey | No | The 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. |
Caption | MGCEarmarkReasonNote | No | The rendered caption for a summary, subtotal or control row. |
InvoiceAccount | MGCEarmarkAccountRelation | No | The paying entity the statement is addressed to. |
OrderingAccount | MGCEarmarkAccountRelation | No | The 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. |
ClaimId | MGCEarmarkClaimId | No | The claim the line belongs to. |
LineNum | LineNum | No | The 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. |
ClaimReference | MGCEarmarkClaimLineRef | No | The customer-facing reference, claim id then line number, produced by the one function that produces it everywhere. |
ClaimLine | RefRecId | No | The claim line's internal record identifier, for a report that needs to drill back. |
DealId | MGCEarmarkDealId | No | The deal the money was earned under. The available section is grouped by deal with a subtotal for each. |
DealGroupId | MGCEarmarkDealGroupId | No | The deal group, when the deal belongs to one. |
DealName | MGCEarmarkDealName | No | The deal's name, for a customer who knows the program by name rather than by number. |
ItemId | MGCEarmarkItemRelation | No | The item the deal money was earned on. |
Qty | MGCEarmarkDealQty | No | The quantity the claim line covers, in the unit shown beside it. |
QtyUnit | UnitOfMeasureSymbol | No | The unit the quantity is expressed in. It is the deal's unit, which is not necessarily the sales unit. |
Rate | MGCEarmarkAccrualAmount | No | The rate the deal money was calculated at, as it was frozen when the commitment was built. |
RateUnit | UnitOfMeasureSymbol | No | The unit the rate is per. |
CustomerPO | MGCEarmarkNaturalKey | No | The 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. |
SalesId | MGCEarmarkNaturalKey | No | The sales order the goods moved on, copied onto the claim line at generation. |
InvoiceId | MGCEarmarkNaturalKey | No | The invoice the goods were billed on, copied onto the claim line at generation. |
InvoiceDate | TransDate | No | The date of that invoice. |
PackingSlipId | MGCEarmarkNaturalKey | No | The packing slip the goods shipped on, copied onto the claim line at generation. |
ShipDate | TransDate | No | The date the goods shipped. |
ApprovalVoucher | Voucher | No | The 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. |
ApprovalDate | TransDate | No | The date the claim was approved and the credit posted. |
TransDate | TransDate | No | The 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. |
AmountCur | MGCEarmarkClaimAmount | No | The row's amount in the deal's own currency, shown alongside the statement currency so the customer can see both. |
DealCurrencyCode | CurrencyCode | No | The currency the deal was denominated in. |
AmountStatement | MGCEarmarkClaimAmount | No | The row's amount converted into the statement currency at the as-of date's rate. |
StatementCurrencyCode | CurrencyCode | No | The currency the statement is presented in, which is the customer's currency unless the run overrode it. |
ExchRate | ExchRate | No | The 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. |
RemainingCur | MGCEarmarkRemainingAmount | No | How 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. |
SettledCur | MGCEarmarkClaimAmount | No | How much of the credit has been settled, derived the same way. |
LastSettlementDate | TransDate | No | When the credit was last settled against. |
IsSubtotal | NoYes | No | Whether this row is a subtotal or control figure rather than a detail line. |
IsNegativeDeal | NoYes | No | Whether 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. |
IsReListed | NoYes | No | Whether 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. |
Preference | MGCEarmarkSettlementPreference | No | What the customer has asked for on this line, if anything. None is a real state meaning nobody has said. |
DaysSinceApproval | MGCEarmarkAgingBucketDays | No | How long the credit has been open at the as-of date, which is what the aging buckets are cut from. |
LedgerAccount | MGCEarmarkNaturalKey | No | The journal the credit was posted from. Internal copy only. |
Detail | MGCEarmarkReasonNote | No | Free text explaining the row - the movement id behind a reversal, or the movement type behind an adjustment. |