Search Engine
Here you can search through the pages of this Namespace, their attachments and the files uploaded to the system.
Note: the results will only display the items you have permissions to read.
This search, performed through 2.14 MB (338 documents, 3448 words), completed in 0.0 seconds and yielded 6 results.
[...] order, or work order. TransactionDate datetime not null (getdate()) Date and time of the transaction. TransactionType nchar(1) not null W = Work Order, S = Sales Order, P = Purchase Order 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. Primary Key Primary Key Columns PK_TransactionHistoryArchive_TransactionID TransactionID Indexes Index Type Columns IX_TransactionHistoryArchive_ProductID ProductID IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID [...]
[...] order, or work order. 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. Primary Key Primary Key Columns PK_TransactionHistory_TransactionID TransactionID Indexes Index Type Columns IX_TransactionHistory_ProductID ProductID IX_TransactionHistory_ReferenceOrderID_ReferenceOrderLineID [...]
[...] [Production].[TransactionHistory]
([ProductID]
,[ReferenceOrderID]
,[ReferenceOrderLineID]
,[TransactionType]
,[TransactionDate]
,[Quantity]
,[ActualCost])
SELECT
inserted.[ProductID]
,inserted.[PurchaseOrderID]
,inserted.[PurchaseOrderDetailID]
,'P'
,GETDATE()
,inserted.[OrderQty]
,inserted.[UnitPrice]
FROM inserted
INNER JOIN [Purchasing].[PurchaseOrderHeader]
ON inserted.[PurchaseOrderID] = [Purchasing].[PurchaseOrderHeader].[PurchaseOrderID];
-- Update [...]
[...] INSERT INTO [Production].[TransactionHistory](
[ProductID]
,[ReferenceOrderID]
,[TransactionType]
,[TransactionDate]
,[Quantity]
,[ActualCost])
SELECT
inserted.[ProductID]
,inserted.[WorkOrderID]
,'W'
,GETDATE()
,inserted.[OrderQty]
,0
FROM inserted;
END TRY
BEGIN CATCH
EXECUTE [dbo].[uspPrintError];
-- Rollback any active or uncommittable transactions before
-- inserting information in the ErrorLog
IF @@TRANCOUNT > 0
BEGIN
ROLLBACK TRANSACTION;
[...]
[...] SafetyStockLevel SellEndDate SellStartDate StandardCost Style Weight A-Za-z Bin Shelf Rating TransactionType OrderQty ScrappedQty ActualCost ActualEndDate [...]
[...] [Production].[TransactionHistory]
([ProductID]
,[ReferenceOrderID]
,[ReferenceOrderLineID]
,[TransactionType]
,[TransactionDate]
,[Quantity]
[...]