Skip to main content

MGCWardenSalesGovStateEntity

Warden's current governance state for one sales order or quotation: the policy version that measured it, what breached and by how much, whether a hold stands, and whether reconfirmation is owed. Read-only. It is state, not history: the row is removed once its document is deleted and no hold is active.

  • Public collection name: WardenSalesGovernanceStates
  • Primary key: RefTableId, RefRecId

Fields​

NameTypeMandatoryDescription
RefTableIdRefTableIdNo
RefRecIdRefRecIdNo
DocumentKeyMGCWardenDocumentKeyNoNatural key of the governed document (e.g. purchase order number). Carried beside RefTableId/RefRecId so timeline rows survive document deletion: no field is ever added to a standard table (suite rule).
HoldRefRecIdNo
ReconfirmationStateMGCWardenReconfirmationStateNoWhether the document must be reconfirmed after a change: Not required, Required (picking, packing and invoicing are refused until a new order confirmation is posted), or Cleared (a confirmation has since been posted).
ApprovalCarryStampstrNoContent signature of an approved quotation, carried to the order made from it so an unchanged order is not approved twice. Any edit to customer, currency, items, quantities, amounts or discounts ends the carry; blank means none was carried.
PolicyCodeMGCWardenPolicyCodeNoThe sales governance policy whose breach placed the current hold, recorded by the evaluation that placed it and not changed afterwards, so approval and rejection events name the rule that held the document.
PolicyVersionMGCWardenPolicyVersionNumNoVersion of the governing policy when its breach placed the hold, recorded with Governing policy by the same evaluation and not changed afterwards; it matches the version on the hold.
LastEvaluatedTransDateTimeNo
AssignedToUserIdNoThe user working this document's outstanding reconfirmation, set with Take on the reconfirmation tracking list; blank means unclaimed. A work claim only: it does not affect whether the document may proceed, and it clears when the reconfirmation clears.
EvaluatedSignaturestrNoDigest of the governed content at the last completed sales governance evaluation. A confirmation attempt with unchanged content is not evaluated again, so an approved order does not trigger a second approval.
BreachMeasureMGCWardenSalesMeasureNoThe measure whose threshold the document breached when the hold was placed, recorded once and not changed. When several measures breached, the first is named here and all of them appear in Breach detail.
BreachMeasuredValuerealNoWhat the measure that fired measured when the hold was placed: a percent for margin and discount, or an amount in the legal entity's accounting currency for credit exposure and order value.
BreachThresholdValuerealNoThe threshold the measured value was compared with when the hold was placed, in the same unit: a percent, or an amount in the accounting currency. Stored, so a later threshold edit does not change it.
BreachThresholdRowRefRecIdNoThe threshold line that set the threshold for this breach, recorded when the hold was placed and kept after the hold clears. Zero means no breach has been recorded, or the breach is older than this field.
BreachDetailNotesNoThe full account of what breached when the hold was placed, every measure and every line, in the words written to the governance event log. The typed breach fields carry only the first measure.
BreachDateTimeTransDateTimeNoWhen the breach figures on this row were measured. Unlike Last evaluated, which changes at every evaluation, it stays with the evaluation that placed the hold.
EvaluatedPolicySignaturestrNoFingerprint of the active sales governance policy set behind the last verdict. The policy sweep re-evaluates documents whose fingerprint differs from the set now in force; blank means the verdict predates policy stamping.

Mappings​

Entity fieldData sourceField
RefTableIdMGCWardenSalesGovStateRefTableId
RefRecIdMGCWardenSalesGovStateRefRecId
DocumentKeyMGCWardenSalesGovStateDocumentKey
HoldMGCWardenSalesGovStateHold
ReconfirmationStateMGCWardenSalesGovStateReconfirmationState
ApprovalCarryStampMGCWardenSalesGovStateApprovalCarryStamp
PolicyCodeMGCWardenSalesGovStatePolicyCode
PolicyVersionMGCWardenSalesGovStatePolicyVersion
LastEvaluatedMGCWardenSalesGovStateLastEvaluated
AssignedToMGCWardenSalesGovStateAssignedTo
EvaluatedSignatureMGCWardenSalesGovStateEvaluatedSignature
BreachMeasureMGCWardenSalesGovStateBreachMeasure
BreachMeasuredValueMGCWardenSalesGovStateBreachMeasuredValue
BreachThresholdValueMGCWardenSalesGovStateBreachThresholdValue
BreachThresholdRowMGCWardenSalesGovStateBreachThresholdRow
BreachDetailMGCWardenSalesGovStateBreachDetail
BreachDateTimeMGCWardenSalesGovStateBreachDateTime
EvaluatedPolicySignatureMGCWardenSalesGovStateEvaluatedPolicySignature