Table

PmfCoByProdCalcTrans

Calculation

Stores cost calculation lines for production orders that have co-products and by-products. Each line is keyed by a reference production order, a level and a line number. It records the calculation type, quantities, cost and sales amounts, cost group, resource and reference details.

Table name
PmfCoByProdCalcTrans
Module
Production control
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
PMF
Primary index
RefNumIdx
Replacement key
None
Key fields
CollectRefProdId, CollectRefLevel, LineNum, RecId
Model
Foundation

Fields (48)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CollectRefProdIdPoints to the reference production order.String (20)
ProdCollectRefProdId
YesProdTable.ProdIdNone
CollectRefLevelLevel of the reference production in the collection.Integer
ProdCollectRefLevel
NoNone
LineNumLine number; part of the key.Real
LineNum
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
BOMYes/no option for BOM consumption in the calculation.Enum
BOMCalcBOMConsumption
NoYes (enum)
NoNone
CalcGroupIdPoints to the calculation group.String
BOMCalcGroupId
NoBOMCalcGroup.CalcGroupIdNone
CalcTypeType of calculation line, such as Production, Item, BOM, Service, Setup or Process.Enum
ItemCalcType (enum)
NoNone
ConsumpConstantConstant consumption quantity.Real
CostQuantity
NoNone
ConsumpTypeShows whether consumption is Variable or Constant.Enum
BOMConsumpType (enum)
NoNone
ConsumpVariableVariable consumption quantity.Real
CostQuantity
NoNone
CostAmountCost amount, in accounting currency.Real
AmountMST
NoNone
CostGroupIdPoints to the cost group.String
CostGroupId
NoBOMCostGroup.CostGroupIdNone
CostMarkupCharges added to the cost amount.Real
BOMCalcCostMarkup
NoNone
CostPriceModelUsedCost price model used, such as Item cost price, Trade agreement or None.Enum
BOMCalcCostPriceUsed (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DerivedReferenceType of the related reference, such as Sales order, Purchase order or Production.Enum
InventRefType (enum)
NoNone
DerivedRefNumNumber of the related reference.String (20)
InventRefId
NoNone
IdRefRecIdSystem record ID of the referenced record; the table is given by the reference table ID.Int64
RefRecId
YesNone
IdRefTableIdID of the table that the reference record belongs to.Integer
RefTableId
YesNone
InventDimIdPoints to the inventory dimensions.String (20)
InventDimId
NoInventDim.inventDimIdNone
InventDimStrInventory dimensions shown as text.String (20)
BOMCalcInventDimStr
NoNone
NumOfSeriesNumber of series, as a quantity.Real
InventQty
NoNone
OprIdPoints to the operation.String
RouteOprId
NoRouteOprTable.OprIdNone
OprNumOperation number.Integer
OprNum
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PmfCostAllocationMethod for co-product cost allocation: None, Manual or TCA.Enum
PmfCostAllocationMethod (enum)
NoNone
PmfCostAllocationPctPercentage of cost allocated.Real
PmfCostAllocationPct
NoNone
PmfIdRefCoByRecIdPoints to the co-product or by-product record on the production order.Int64
PmfIdRefCoByRecId
NoPmfProdCoBy.RecIdNone
PmfOverheadPctBurden percentage for the by-product.Real
PmfOverheadPct
NoNone
PriceDiscQtyQuantity used for price and discount.Real
BOMCalcPriceDiscQty
NoNone
ProductionYes/no option for production.low confidenceEnum
NoYes (enum)
NoNone
QtyQuantity on the line.Real
InventQty
NoNone
RealConsumpConsumption quantity recorded.Real
CostQuantity
NoNone
RealCostAdjustmentAdjustment to the actual cost.Real
CostAmountNonMonetary
NoNone
RealCostAmountActual cost amount.Real
CostAmountNonMonetary
NoNone
RealQtyActual quantity produced.Real
ProdQty
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
ResourceItem or resource code for the line.String (30)
BOMCalcResource
NoInventTable.ItemIdWrkCtrTable.WrkCtrIdNone
SalesAmountSales amount, in accounting currency.Real
AmountMST
NoNone
SalesMarkupCharges added to the sales amount.Real
BOMCalcSalesMarkup
NoNone
SalesPriceModelUsedSales price model used: None, Cost group or Item sales price.Enum
BOMCalcSalesPriceUsed (enum)
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TransDateDate of the transaction.Date
TransDate
NoNone
TransRefIdReference number of the cost transaction, such as a production order ID.String (35)
CostTransRefId
NoProdTable.ProdIdNone
TransRefTypeType of the reference: Production order, Production flow, Lot ID or Backflush costing calculation.Enum
ProdTransRefType (enum)
NoNone
UnitIdPoints to the unit of measure.String
UnitOfMeasureSymbol
NoUnitOfMeasure.SymbolNone
VendIdPoints to the vendor account.String (20)
VendAccount
NoVendTable.AccountNumNone

Indexes (4)

Relations (18)

Each relation joins PmfCoByProdCalcTrans to another table on the fields shown.

  • BOMCalcGroup → BOMCalcGroup

    Join on CalcGroupId = BOMCalcGroup.CalcGroupId

    Many PmfCoByProdCalcTrans records → zero or one BOMCalcGroup record

  • BOMCostGroup → BOMCostGroup

    Join on CostGroupId = BOMCostGroup.CostGroupId

    Many PmfCoByProdCalcTrans records → zero or one BOMCostGroup record

  • CollectRefProdTable → ProdTable

    Join on CollectRefProdId = ProdTable.ProdId

    Many PmfCoByProdCalcTrans records → exactly one ProdTable record

  • Common → Common

    Join on IdRefRecId = Common.RecId, IdRefTableId = Common.TableId

    Many PmfCoByProdCalcTrans records → exactly one Common record

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId

    Many PmfCoByProdCalcTrans records → zero or one InventDim record

  • InventTableBOM → InventTable

    Join on CalcType = ItemCalcType::BOM, Resource = InventTable.ItemId

    Many PmfCoByProdCalcTrans records → zero or one InventTable record

  • InventTableItem → InventTable

    Join on CalcType = ItemCalcType::Item, Resource = InventTable.ItemId

    Many PmfCoByProdCalcTrans records → zero or one InventTable record

  • InventTableProd → InventTable

    Join on CalcType = ItemCalcType::Production, Resource = InventTable.ItemId

    Many PmfCoByProdCalcTrans records → zero or one InventTable record

  • InventTableService → InventTable

    Join on CalcType = ItemCalcType::Service, Resource = InventTable.ItemId

    Many PmfCoByProdCalcTrans records → zero or one InventTable record

  • PmfProdCoByProduct → PmfProdCoBy

    Join on PmfIdRefCoByRecId = PmfProdCoBy.RecId

    Many PmfCoByProdCalcTrans records → zero or one PmfProdCoBy record

  • ProdBOM → ProdBOM

    Join on IdRefTableId = ProdBOM.TableId, IdRefRecId = ProdBOM.RecId

    Many PmfCoByProdCalcTrans records → zero or one ProdBOM record

  • ProdTable → ProdTable

    Join on TransRefType = ProdTransRefType::Production, TransRefId = ProdTable.ProdId

    Many PmfCoByProdCalcTrans records → zero or one ProdTable record

  • RouteOprTable → RouteOprTable

    Join on OprId = RouteOprTable.OprId

    Many PmfCoByProdCalcTrans records → exactly one RouteOprTable record

  • Unit → UnitOfMeasure

    Join on UnitId = UnitOfMeasure.Symbol

    Many PmfCoByProdCalcTrans records → zero or one UnitOfMeasure record

  • VendTable → VendTable

    Join on VendId = VendTable.AccountNum

    Many PmfCoByProdCalcTrans records → zero or one VendTable record

  • WrkCtrTableProcess → WrkCtrTable

    Join on CalcType = ItemCalcType::Process, Resource = WrkCtrTable.WrkCtrId

    Many PmfCoByProdCalcTrans records → zero or one WrkCtrTable record

  • WrkCtrTableQty → WrkCtrTable

    Join on CalcType = ItemCalcType::Qty, Resource = WrkCtrTable.WrkCtrId

    Many PmfCoByProdCalcTrans records → zero or one WrkCtrTable record

  • WrkCtrTableSetup → WrkCtrTable

    Join on CalcType = ItemCalcType::Setup, Resource = WrkCtrTable.WrkCtrId

    Many PmfCoByProdCalcTrans records → zero or one WrkCtrTable record

Get this data out

No public entity reads from PmfCoByProdCalcTrans. Its data is only reachable through the application, a custom entity or a database export.

Need help with PmfCoByProdCalcTrans in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk