Difference between revisions of "Production.TransactionHistory (table)"
Line 96: | Line 96: | ||
| ProductID | | ProductID | ||
|} | |} | ||
− | |||
== automatically generated == | == automatically generated == | ||
Line 118: | Line 117: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''Description | + | | '''Description / PK / Index |
− | |||
− | |- | + | |- valign="top" |
| TransactionID | | TransactionID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | Primary key for TransactionHistory records. | + | | Primary key for TransactionHistory records.PK_TransactionHistory_TransactionID |
− | + | |- valign="top" | |
− | |- | ||
| ProductID | | ProductID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | Product identification number. Foreign key to Product.ProductID. | + | | Product identification number. Foreign key to Product.ProductID.IX_TransactionHistory_ProductID |
− | + | |- valign="top" | |
− | |- | ||
| ReferenceOrderID | | ReferenceOrderID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | Purchase order, sales order, or work order identification number. | + | | Purchase order, sales order, or work order identification number.IX_TransactionHistory_ReferenceOrderID_ReferenceOrderLineID |
− | + | |- valign="top" | |
− | |- | ||
| ReferenceOrderLineID | | ReferenceOrderLineID | ||
| int | | int | ||
| not null | | not null | ||
| (0) | | (0) | ||
− | | Line number associated with the purchase order, sales order, or work order. | + | | Line number associated with the purchase order, sales order, or work order.IX_TransactionHistory_ReferenceOrderID_ReferenceOrderLineID |
− | + | |- valign="top" | |
− | |- | ||
| TransactionDate | | TransactionDate | ||
| datetime | | datetime | ||
Line 155: | Line 149: | ||
| (GETDATE()) | | (GETDATE()) | ||
| Date and time of the transaction. | | Date and time of the transaction. | ||
− | + | |- valign="top" | |
− | |- | ||
| TransactionType | | TransactionType | ||
| nchar(1) | | nchar(1) | ||
Line 162: | Line 155: | ||
| | | | ||
| W = WorkOrder, S = SalesOrder, P = PurchaseOrder | | W = WorkOrder, S = SalesOrder, P = PurchaseOrder | ||
− | + | |- valign="top" | |
− | |- | ||
| Quantity | | Quantity | ||
| int | | int | ||
Line 169: | Line 161: | ||
| | | | ||
| Product quantity. | | Product quantity. | ||
− | + | |- valign="top" | |
− | |- | ||
| ActualCost | | ActualCost | ||
| money | | money | ||
Line 176: | Line 167: | ||
| | | | ||
| Product cost. | | Product cost. | ||
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
Line 183: | Line 173: | ||
| (GETDATE()) | | (GETDATE()) | ||
| Date and time the record was last updated. | | Date and time the record was last updated. | ||
− | |||
|} | |} | ||
Line 198: | Line 187: | ||
| ProductID | | ProductID | ||
| ProductID | | ProductID | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Referencing Object | ||
+ | | '''Object Type | ||
+ | | '''Reference Type | ||
+ | |||
+ | |- | ||
+ | | [[Production.WorkOrder_(table)|Production.WorkOrder]] | ||
+ | | Table | ||
+ | | Insert | ||
+ | |- | ||
+ | | [[Production.WorkOrder_(table)|Production.WorkOrder]] | ||
+ | | Table | ||
+ | | Insert | ||
+ | |- | ||
+ | | [[Purchasing.PurchaseOrderDetail_(table)|Purchasing.PurchaseOrderDetail]] | ||
+ | | Table | ||
+ | | Insert | ||
+ | |- | ||
+ | | [[Purchasing.PurchaseOrderDetail_(table)|Purchasing.PurchaseOrderDetail]] | ||
+ | | Table | ||
+ | | Insert | ||
+ | |- | ||
+ | | [[Sales.SalesOrderDetail_(table)|Sales.SalesOrderDetail]] | ||
+ | | Table | ||
+ | | Insert | ||
|} | |} |
Revision as of 23:58, 26 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 |