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

From dbscript Online Help
Jump to: navigation, search
Line 102: Line 102:
 
| '''Table
 
| '''Table
 
| Production.TransactionHistory
 
| Production.TransactionHistory
|-
+
|- valign="top"
  
 
| '''Description
 
| '''Description
Line 124: Line 124:
 
| not null
 
| not null
 
|  
 
|  
| Primary key for TransactionHistory records.PK_TransactionHistory_TransactionID
+
| Primary key for TransactionHistory records.<br />PK_TransactionHistory_TransactionID
 
|- valign="top"
 
|- valign="top"
 
| ProductID
 
| ProductID
Line 130: Line 130:
 
| not null
 
| not null
 
|  
 
|  
| Product identification number. Foreign key to Product.ProductID.IX_TransactionHistory_ProductID
+
| Product identification number. Foreign key to Product.ProductID.<br />IX_TransactionHistory_ProductID
 
|- valign="top"
 
|- valign="top"
 
| ReferenceOrderID
 
| ReferenceOrderID
Line 136: Line 136:
 
| not null
 
| not null
 
|  
 
|  
| Purchase order, sales order, or work order identification number.IX_TransactionHistory_ReferenceOrderID_ReferenceOrderLineID
+
| Purchase order, sales order, or work order identification number.<br />IX_TransactionHistory_ReferenceOrderID_ReferenceOrderLineID
 
|- valign="top"
 
|- valign="top"
 
| ReferenceOrderLineID
 
| ReferenceOrderLineID
Line 142: Line 142:
 
| not null
 
| not null
 
| (0)
 
| (0)
| Line number associated with the purchase order, sales order, or work order.IX_TransactionHistory_ReferenceOrderID_ReferenceOrderLineID
+
| Line number associated with the purchase order, sales order, or work order.<br />IX_TransactionHistory_ReferenceOrderID_ReferenceOrderLineID
 
|- valign="top"
 
|- valign="top"
 
| TransactionDate
 
| TransactionDate
Line 148: Line 148:
 
| not null
 
| not null
 
| (GETDATE())
 
| (GETDATE())
| Date and time of the transaction.
+
| Date and time of the transaction.<br />
 
|- valign="top"
 
|- valign="top"
 
| TransactionType
 
| TransactionType
Line 154: Line 154:
 
| not null
 
| not null
 
|  
 
|  
| W = WorkOrder, S = SalesOrder, P = PurchaseOrder
+
| W = WorkOrder, S = SalesOrder, P = PurchaseOrder<br />
 
|- valign="top"
 
|- valign="top"
 
| Quantity
 
| Quantity
Line 160: Line 160:
 
| not null
 
| not null
 
|  
 
|  
| Product quantity.
+
| Product quantity.<br />
 
|- valign="top"
 
|- valign="top"
 
| ActualCost
 
| ActualCost
Line 166: Line 166:
 
| not null
 
| not null
 
|  
 
|  
| Product cost.
+
| Product cost.<br />
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 172: Line 172:
 
| not null
 
| not null
 
| (GETDATE())
 
| (GETDATE())
| Date and time the record was last updated.
+
| Date and time the record was last updated.<br />
 
|}
 
|}
  

Revision as of 00:11, 27 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


Referencing Object Object Type Reference Type
Production.WorkOrder Table Insert
Production.WorkOrder Table Insert
Purchasing.PurchaseOrderDetail Table Insert
Purchasing.PurchaseOrderDetail Table Insert
Sales.SalesOrderDetail Table Insert