MGCEarmarkLinePriceStaging
The data-management staging table behind MGCEarmarkLinePriceEntity.
Fields
| Name | Type | Mandatory | Description |
|---|---|---|---|
DefinitionGroup | DMFDefinitionGroupName | Yes | |
ExecutionId | DMFExecutionId | Yes | |
IsSelected | DMFIsSelected | No | |
TransferStatus | DMFTransferStatus | No | |
LinePriceRecId | RefRecId | No | |
OrderId | MGCEarmarkNaturalKey | No | The readable half of an Earmark dual key. Every Earmark reference to another record stores two things: the record ID, which is exact and fast, and this natural key, which is the value a person recognizes - a deal ID, a sales order and line, an inventory transaction ID, a claim ID, a voucher, a payment method or a category hierarchy name. Both are stored because a record ID on its own is useless in an export, in a data-management load, after a migration, or once the record it pointed at has been purged. Sixty characters matches the Earmark identifier width, so any Earmark key copies into it without truncation. Implements requirements A1, A17 and A18. |
LineNum | LineNum | No | |
BuildNumber | MGCEarmarkBuildNumber | No | The ordinal of one build within one order line's history, starting at 1 and increasing by one each time the line is built again. It is an ordinal per line rather than an estate-wide identifier, which is why it is not number-sequenced: a sequence would burn numbers across every line in the company to produce it, and its counter would read as a count of price builds that is not one. Together with the line reference it is the alternate key of the build table, so two builds of one line can never share a number. |
LineTableId | RefTableId | No | |
LineRecId | RefRecId | No | |
InventTransId | InventTransId | No | |
Current | NoYesId | No | |
BuildState | MGCEarmarkBuildState | No | |
BuildSource | MGCEarmarkBuildSource | No | |
IdempotencyKey | MGCEarmarkIdempotencyKey | No | A caller-supplied key that makes a repeated request incapable of doing the work twice. The build price service requires one from every caller, so that a retried call - a timeout the caller did not see, a queue that delivered the same message twice - finds the build already recorded and returns it instead of building a second one and freezing a second set of commitments. A build raised from the price builder form has no caller to supply a key and leaves it blank; blanks are legal and are never compared with each other. |
BuiltBy | UserId | No | |
BuiltDateTime | TransDateTime | No | |
BasePriceCur | MGCEarmarkUnitPriceAmount | No | A money figure expressed per price unit and in the transaction currency - the base price, the built price and the price captured before a build all use this type. Per PRICE unit matters: a figure of 250 means nothing until you know whether it is per each or per hundred, so the price unit is always stored beside it. |
BasePriceMST | MGCEarmarkUnitPriceAmount | No | A money figure expressed per price unit and in the transaction currency - the base price, the built price and the price captured before a build all use this type. Per PRICE unit matters: a figure of 250 means nothing until you know whether it is per each or per hundred, so the price unit is always stored beside it. |
OverBasisCur | MGCEarmarkOverBasisAmount | No | The amount added over the base price before any deal money, expressed per price unit and in the transaction currency. It is the part of the price that is the seller's own margin over the commodity basis, as against the base itself and as against the deal money that will be claimed back. IT MAY BE NEGATIVE - a line may be sold under its basis - while the built unit price as a whole may not fall below zero. |
OverBasisMST | MGCEarmarkOverBasisAmount | No | The amount added over the base price before any deal money, expressed per price unit and in the transaction currency. It is the part of the price that is the seller's own margin over the commodity basis, as against the base itself and as against the deal money that will be claimed back. IT MAY BE NEGATIVE - a line may be sold under its basis - while the built unit price as a whole may not fall below zero. |
DealMoneyCur | MGCEarmarkDealMoneyAmount | No | The part of a price that is trade-deal money grossed INTO the invoiced value, expressed per price unit and in the transaction currency. It is money the customer is invoiced and will claim back, so it is a liability from the moment the line is priced rather than from the moment it is claimed - which is the whole reason the decomposition is stored. It excludes off-invoice allowances, which never enter the invoiced price at all and are carried separately. |
DealMoneyMST | MGCEarmarkDealMoneyAmount | No | The part of a price that is trade-deal money grossed INTO the invoiced value, expressed per price unit and in the transaction currency. It is money the customer is invoiced and will claim back, so it is a liability from the moment the line is priced rather than from the moment it is claimed - which is the whole reason the decomposition is stored. It excludes off-invoice allowances, which never enter the invoiced price at all and are carried separately. |
AllowanceCur | MGCEarmarkAllowanceAmount | No | The part of a deal's money held OFF the invoice, expressed per price unit and in the transaction currency. An off-invoice allowance is a commitment to the customer that was never added into the price they were charged, so unlike deal money it must not be summed into the invoiced value - a revenue model that added both would count the liability twice. The price mode on each component is what says which of the two a deal's money became. |
AllowanceMST | MGCEarmarkAllowanceAmount | No | The part of a deal's money held OFF the invoice, expressed per price unit and in the transaction currency. An off-invoice allowance is a commitment to the customer that was never added into the price they were charged, so unlike deal money it must not be summed into the invoiced value - a revenue model that added both would count the liability twice. The price mode on each component is what says which of the two a deal's money became. |
UnitPriceCur | MGCEarmarkUnitPriceAmount | No | A money figure expressed per price unit and in the transaction currency - the base price, the built price and the price captured before a build all use this type. Per PRICE unit matters: a figure of 250 means nothing until you know whether it is per each or per hundred, so the price unit is always stored beside it. |
UnitPriceMST | MGCEarmarkUnitPriceAmount | No | A money figure expressed per price unit and in the transaction currency - the base price, the built price and the price captured before a build all use this type. Per PRICE unit matters: a figure of 250 means nothing until you know whether it is per each or per hundred, so the price unit is always stored beside it. |
PriceUnit | PriceUnit | No | |
PriceModeSummary | MGCEarmarkPriceMode | No | |
PreBuildUnitPrice | MGCEarmarkUnitPriceAmount | No | A money figure expressed per price unit and in the transaction currency - the base price, the built price and the price captured before a build all use this type. Per PRICE unit matters: a figure of 250 means nothing until you know whether it is per each or per hundred, so the price unit is always stored beside it. |
BuildExchRate | ExchRate | No | |
BuildRateType | ExchangeRateTypeName | No | |
BuildRateDate | TransDate | No | |
FpItemId | ItemId | No | |
FpInventDimId | InventDimId | No | |
FpQty | MGCEarmarkDealQty | No | A quantity expressed in the deal's own unit of measure. It extends the standard quantity type so that it inherits unit behavior and display length. Inventory-unit quantities are converted into the deal unit using the conversion factor snapshotted on the accrual instance when it was built; where no conversion path exists the movement yields the verdict Unit not convertible, rather than a silent mis-scale or a runtime failure. Implements requirements A7 and C7. |
FpSalesUnit | UnitOfMeasureSymbol | No | |
FpPriceUnit | PriceUnit | No | |
FpInvoiceAccount | MGCEarmarkAccountRelation | No | The customer, vendor, customer group or vendor group that a deal targeting row or a posting profile row selects, read according to that row's account code and the deal's module. It is sixty characters, matching the item relation type rather than the twenty-character standard relation type, so that the two halves of a selector pair behave identically and neither truncates a value the other would keep. It is mandatory for every account code except All, which must leave it blank. Implements requirements A5 and A10. |
FpEligibilityDate | TransDate | No | |
FpCurrencyCode | CurrencyCode | No | |
AcknowledgedBy | UserId | No | |
AcknowledgedDateTime | TransDateTime | No | |
AcknowledgeReasonCode | ReasonCode | No |