Skip to main content

MGCEarmarkLinePriceStaleReason

One reason a build no longer matches its line, with the value the build was made against and the value now. A build can be stale for several reasons at once - the ship date moved and then the invoice account changed - each with its own pair of values, which is why the reasons live here rather than in a single column on the build. There is one row per reason per build, ever: a reason detected again after being accepted re-opens the same row rather than adding a second one. Rows are permanent evidence and are never deleted; a reason is accepted by clearing it.

Fields​

NameTypeMandatoryDescription
AfterValueMGCEarmarkFingerprintValueNoThe value the line carries now. Unlike the value at build, this one moves - a second detection of the same reason refreshes it rather than adding a row.
BeforeValueMGCEarmarkFingerprintValueNoThe value the line carried when the price was built. It is immutable, and that matters: if a later detection overwrote it, a column that had drifted twice would show its second-to-last value as the original and the drift would look smaller than it was.
ClearedNoYesIdNoWhether somebody has accepted this reason and decided the built price still stands. Accepting keeps the price and does not rebuild it. A reason that is detected again after being accepted re-opens, and re-opening clears the actor and the moment as well - a row that said it was open while still naming who accepted it would read as answered to everyone except the flag.
ClearedByUserIdNoWho accepted this reason. Stamped rather than supplied, and cleared again if the reason re-opens.
ClearedDateTimeTransDateTimeNoWhen this reason was accepted, in coordinated universal time. Stamped rather than supplied, and cleared again if the reason re-opens.
FlaggedByUserIdNoThe user whose change caused this reason to be raised. The stale detector runs after a change is committed, so this is the author of that change rather than an operator who chose to raise anything.
FlaggedDateTimeTransDateTimeYesWhen this reason was last detected, in coordinated universal time. It is re-stamped when a cleared reason is detected again, so it always reads as the most recent time the build and its line disagreed.
LinePriceRefRecIdYesThe build this reason was raised against. A stale reason about no build is unreachable from every view it feeds, so it is refused.
ReasonMGCEarmarkStaleReasonNoWhich of the build's captured facts changed. Currency is the special one: for every other reason the built price is re-applied after a native re-derivation, but a price built in one currency is meaningless in another, so the natively re-derived price stands and the build is void in the new currency.