Skip to main content

MGCEarmarkClaimSettlementPreferenceEntity

The read-only export of the settlement preferences recorded against Earmark claim lines - what the counterparty asked for, when they asked, who recorded it and through which channel. Current and superseded rows are exported together, because the question the export is asked is what a customer has asked for over time and when they changed their mind, not only what they last said; a consumer that wants the live preference filters on the current flag. Recording a preference stays in the user interface: it is not a row insert but a supersession that flags the previous current row, points it at the new one and writes a timeline entry in one transaction, with exactly one current row per claim line enforced when the row is written. A writable entity would let a data load put a second current row on a line and the supersession history would stop meaning anything. Implements requirement D9.

  • Public collection name: MGCEarmarkClaimSettlementPreferences
  • Primary key: SettlementPreferenceRecId, ClaimId, LineNum, RecordedDateTime

Fields​

NameTypeMandatoryDescription
SettlementPreferenceRecIdRefRecIdNo
ClaimIdMGCEarmarkClaimIdYesThe 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.
LineNumLineNumYesThe 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.
ClaimReferenceMGCEarmarkClaimLineRefNoThe 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.
InvoiceAccountMGCEarmarkAccountRelationYesThe 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.
PreferenceMGCEarmarkSettlementPreferenceNoWhat the customer asked for. None is a real answer meaning we asked and they had no preference, which is not the same as never having asked - a line with no preference row at all simply re-lists on the next statement.
DateReceivedTransDateNoWhen the customer told us. This is THEIR clock, not ours: it is the date of the call, the message or the remittance, and it is what a dispute is argued from. The recorded date and time beside it is when we typed it in.
SourceMGCEarmarkPreferenceSourceNoHow the election reached us - the call, the message, the remittance or the portal it came in on. It records the channel, never the validity.
NoteMGCEarmarkPreferenceNoteNoWhat the customer actually said, in their words where possible. It is the difference between a checkbox and evidence.
IsCurrentNoYesIdNoWhether this is the election in force. Exactly one row per claim line carries it, and the value only ever moves from yes to no - a superseded election is never resurrected, because the history would then hold two rows each claiming to be the latest word.
RecordedByUserIdNoWho wrote the election down.
RecordedDateTimeTransDateTimeNoWhen we wrote the election down. Our clock, as opposed to the date received, which is the customer's.

Mappings​

Entity fieldData sourceField
SettlementPreferenceRecIdMGCEarmarkClaimSettlementPreferenceRecId
ClaimIdClaimClaimId
LineNumClaimLineLineNum
InvoiceAccountClaimInvoiceAccount
PreferenceMGCEarmarkClaimSettlementPreferencePreference
DateReceivedMGCEarmarkClaimSettlementPreferenceDateReceived
SourceMGCEarmarkClaimSettlementPreferenceSource
NoteMGCEarmarkClaimSettlementPreferenceNote
IsCurrentMGCEarmarkClaimSettlementPreferenceCurrent
RecordedByMGCEarmarkClaimSettlementPreferenceRecordedBy
RecordedDateTimeMGCEarmarkClaimSettlementPreferenceRecordedDateTime