ClaimId | MGCEarmarkClaimId | Yes | The claim's identifier, issued from the claim number sequence and quoted to the customer as the first half of the claim reference. It is frozen from insert and can never be edited, because it has been printed on a statement and used as journal text. |
LineNum | LineNum | Yes | The line's number within its claim, and the second half of the reference the customer quotes. IT IS IMMUTABLE ONCE THE LINE EXISTS. Renumbering would change a reference already printed on a statement and already used as journal text, so our copy and the customer's would disagree with nothing to say which is right. |
ClaimReference | MGCEarmarkClaimLineRef | No | The customer-facing reference for one claim line, composed as the claim ID, a hyphen and the line number. It is computed on read and never stored, because a stored copy would be a third place the string lives and the one that would eventually disagree with the two columns it was built from. Both halves are immutable, so the reference cannot change once it has been quoted. This is the string a counterparty reads back over the telephone and the string written as the text of the credit's journal line, so it is composed in exactly one place in the product and every surface that shows it shows the same characters. |
ClaimStatus | MGCEarmarkClaimStatus | No | Where this claim stands. Written only by the claim orchestrators, and the table enforces that: outside the lifecycle write context a status change is refused in every case, including from a runnable job or a data-management load. Only five moves are legal, and approved is final. |
CounterpartyType | MGCEarmarkClaimCounterpartyType | No | Whether this claim credits a customer or a vendor. It is frozen from insert: the counterparty side decides which posting profile resolves the accounts and which native transaction table the credit lands in, so changing it would re-aim a posting that has already been described. |
CounterpartyAccount | MGCEarmarkAccountRelation | No | The trading party the deal was struck with - WHAT THE USER RECOGNIZES. On a chain account this is not the party that pays, which is why it is a separate column from the invoice account. It is shown so a claims clerk can recognize the claim; it is never the posting target. |
InvoiceAccount | MGCEarmarkAccountRelation | Yes | The account the credit posts to, and the key claims are grouped by - one claim per invoice account per deal currency. It is THE POSTING TARGET, and it is frozen from insert: moving it would re-aim a credit at a different customer without re-cutting the claim. |
CurrencyCode | CurrencyCode | Yes | The deal currency every line on this claim accrued in, and the second half of the grouping key. Amounts on the claim are held in it, with the accounting amount beside them. |
AccrualTransId | MGCEarmarkAccrualTransId | Yes | The accrual transaction's natural key, stored beside its record id because a record id alone is useless in an export, a data-management load or after a migration. |
AccrualInstanceId | MGCEarmarkAccrualInstanceId | Yes | The identifier of this commitment, drawn from the accrual instance number sequence when the instance was created. It is the readable key every downstream surface quotes - the accrual transaction chain, the claim statement, the reconciliation tie-out and the migration certificate - and it is the primary key of the accrual instance data entity, so it survives an export, a lake load and a migration where a record ID would not. It is assigned once and never changes. |
DealId | MGCEarmarkDealId | No | The deal's natural key, copied at generation so the line remains readable in an export and after a migration. |
DealGroupId | MGCEarmarkDealGroupId | No | The deal group the deal belonged to at generation, copied so a statement can be grouped by program without joining back to the deal. |
ItemId | ItemId | No | The item the claimed money accrued on, copied from the accrual transaction at generation. |
Qty | MGCEarmarkDealQty | No | The quantity the claimed accrual was calculated on, in the unit beside it, copied at generation. The statement shows it so a customer can check the arithmetic. |
QtyUnit | UnitOfMeasureSymbol | No | The unit the claimed quantity is expressed in. The conversion factor that produced it was snapshotted on the accrual instance when it was built, so the figure cannot drift if a unit conversion is later changed. |
Rate | MGCEarmarkAllowanceAmount | No | The deal rate applied to produce the claimed amount, copied at generation. Shown on the statement beside the quantity so the customer can see how the figure was arrived at. |
RateUnit | UnitOfMeasureSymbol | No | The unit the rate is per. A rate without its unit is not a rate a customer can check. |
ClaimAmountCur | MGCEarmarkClaimAmount | No | The credit this line asks for, in the deal currency. Taken from the accrual transaction rather than recalculated, so a claim and the accrual behind it cannot disagree by a rounding residue. |
ClaimAmountMST | AmountMST | No | The claim amount in the accounting currency, carried from the accrual transaction together with the exchange rate that produced it. |
CustomerPO | CustPurchaseOrder | No | The customer's own purchase order reference, copied from the accrual transaction at generation. It is on the statement because it is usually the only reference the customer's accounts payable department recognizes. |
SalesId | SalesIdBase | No | The sales order the claimed movement came from, copied at generation. Held as a plain value rather than a live lookup, because a claim outlives the order it came from and a dangling lookup would be worse than a recorded number. |
InvoiceId | InvoiceId | No | The customer invoice the claimed movement was accrued against, copied at generation. |
InvoiceDate | TransDate | No | The date of that invoice, copied at generation and shown on the statement. |
PackingSlipId | PackingSlipId | No | The packing slip the claimed movement came from, copied at generation. |
ShipDate | TransDate | No | The date the goods moved, copied at generation. On a claim accrued at shipment this is the date the money was earned. |
ApprovalJournalNum | LedgerJournalId | No | The journal that carried this line's approval credit. It cannot exist when the line is generated, so it is filled in once when the approval posts and can never be changed afterwards. |
ApprovalVoucher | Voucher | No | The voucher of this line's approval credit - one voucher per claim line, not one per journal, so a customer transaction can be traced back to a single claim line. Filled in once when the posting commits; a re-stamped voucher would silently re-point the audit trail at a different posting. |
PostingStatus | MGCEarmarkClaimPostingStatus | No | Whether this line's approval credit has posted. The credit does not exist until it is posted, and the statement excludes the line until then - there is deliberately no phantom transaction. |
ReturnFlag | NoYesId | No | Whether a return arrived against this line's source document after the claim was made. It is a flag for a human, not an automatic adjustment: what should happen to a claim whose goods came back is a commercial decision, and the parameter decides whether an unresolved flag blocks submission. |
ReturnFlagAccepted | NoYesId | No | Whether the return flag on this line has been reviewed and accepted. An accepted flag stops blocking submission; an unresolved one may still do so, depending on the parameter. |
ReturnFlagReason | MGCEarmarkReasonNote | No | Why the return flag was accepted or rejected. Kept because the decision is commercial and will be asked about later. |