Difference between revisions of "Production.TransactionHistory (table)"

From dbscript Online Help
Jump to: navigation, search
Line 192: Line 192:
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
 +
| '''Dependency Type
 +
| '''Object Type
 
| '''Referenced Object
 
| '''Referenced Object
| '''Object Type
 
| '''Dependency Type
 
  
 
|-
 
|-
| [[.Production_(schema)|.Production]]
 
 
| Schema
 
| Schema
 
| Schema
 
| Schema
 +
| [[Production_(schema)|Production]]
 +
 
|}
 
|}
  
Line 205: Line 206:
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
 +
| '''Reference Type
 +
| '''Object Type
 
| '''Referencing Object
 
| '''Referencing Object
| '''Object Type
+
 
| '''Reference Type
+
| '''Child Type
 +
| '''Child Object
  
 
|-
 
|-
 +
| Insert
 +
| Table
 
| [[Production.WorkOrder_(table)|Production.WorkOrder]]
 
| [[Production.WorkOrder_(table)|Production.WorkOrder]]
| Table
+
 
| Insert
 
 
| Trigger
 
| Trigger
 
| iWorkOrder
 
| iWorkOrder
 
|-
 
|-
 +
| Insert
 +
| Table
 
| [[Production.WorkOrder_(table)|Production.WorkOrder]]
 
| [[Production.WorkOrder_(table)|Production.WorkOrder]]
| Table
+
 
| Insert
 
 
| Trigger
 
| Trigger
 
| uWorkOrder
 
| uWorkOrder
 
|-
 
|-
 +
| Insert
 +
| Table
 
| [[Purchasing.PurchaseOrderDetail_(table)|Purchasing.PurchaseOrderDetail]]
 
| [[Purchasing.PurchaseOrderDetail_(table)|Purchasing.PurchaseOrderDetail]]
| Table
+
 
| Insert
 
 
| Trigger
 
| Trigger
 
| iPurchaseOrderDetail
 
| iPurchaseOrderDetail
 
|-
 
|-
 +
| Insert
 +
| Table
 
| [[Purchasing.PurchaseOrderDetail_(table)|Purchasing.PurchaseOrderDetail]]
 
| [[Purchasing.PurchaseOrderDetail_(table)|Purchasing.PurchaseOrderDetail]]
| Table
+
 
| Insert
 
 
| Trigger
 
| Trigger
 
| uPurchaseOrderDetail
 
| uPurchaseOrderDetail
 
|-
 
|-
 +
| Insert
 +
| Table
 
| [[Sales.SalesOrderDetail_(table)|Sales.SalesOrderDetail]]
 
| [[Sales.SalesOrderDetail_(table)|Sales.SalesOrderDetail]]
| Table
+
 
| Insert
 
 
| Trigger
 
| Trigger
 
| iduSalesOrderDetail
 
| iduSalesOrderDetail
 
|}
 
|}

Revision as of 06:35, 30 November 2009

wikibot

Table Production.TransactionHistory


Column Data Type Nullable Default PK Index
TransactionID int not null PK_TransactionHistory_TransactionID
ProductID int not null IX_TransactionHistory_ProductID
ReferenceOrderID int not null IX_TransactionHistory_ReferenceOrderID_ReferenceOrderLineID
ReferenceOrderLineID int not null ((0)) IX_TransactionHistory_ReferenceOrderID_ReferenceOrderLineID
TransactionDate datetime not null (getdate())
TransactionType nchar(1) not null
Quantity int not null
ActualCost money not null
ModifiedDate datetime not null (getdate())


Relation Column Referenced Column
Production.Product ProductID ProductID

automatically generated

Table Production.TransactionHistory
Description Record of each purchase order, sales order, or work order transaction year to date.


Column Data Type Nullable Default Description / PK / Index
TransactionID int not null Primary key for TransactionHistory records.
PK_TransactionHistory_TransactionID
ProductID int not null Product identification number. Foreign key to Product.ProductID.
IX_TransactionHistory_ProductID
ReferenceOrderID int not null Purchase order, sales order, or work order identification number.
IX_TransactionHistory_ReferenceOrderID_ReferenceOrderLineID
ReferenceOrderLineID int not null (0) Line number associated with the purchase order, sales order, or work order.
IX_TransactionHistory_ReferenceOrderID_ReferenceOrderLineID
TransactionDate datetime not null (GETDATE()) Date and time of the transaction.
TransactionType nchar(1) not null W = WorkOrder, S = SalesOrder, P = PurchaseOrder
Quantity int not null Product quantity.
ActualCost money not null Product cost.
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Relation Column Referenced Column
Production.Product ProductID ProductID


Dependency Type Object Type Referenced Object
Schema Schema Production


Reference Type Object Type Referencing Object Child Type Child Object
Insert Table Production.WorkOrder Trigger iWorkOrder
Insert Table Production.WorkOrder Trigger uWorkOrder
Insert Table Purchasing.PurchaseOrderDetail Trigger iPurchaseOrderDetail
Insert Table Purchasing.PurchaseOrderDetail Trigger uPurchaseOrderDetail
Insert Table Sales.SalesOrderDetail Trigger iduSalesOrderDetail