dbo.SXAMMPharmacyStockInventoryTransaction 
Default Table Name  SXAMMPharmacyStockInventoryTransaction 
Definition  This entity contains the manual transactions that adjust the inventory of generic items in the pharmacy

This includes adjustments for receiving orders, initial quantities, correction of mistakes, etc. 

dbo.SXAMMPharmacyStockInventoryTransaction Columns 
ColumnName  Domain  Datatype  NULL  Definition 
SiteID    smallint  NO  Identifies the unique distributed database ID where the row was inserted. Distributed databases are no longer supported so this column is deprecated. 
Build    int  NO  Identifies the build number and patch level of the software that inserted/updated this row. The format is the Build number followed by 3 digits for the patch level which is typically 000. The build number is tied to specific versions of the software, e.g. Sunrise 15.3 is Build 5021, Sunrise 16.3 is Build 5503. 
TouchedBy    varchar(50)  NO  Information about the user that last updated the row. This will typically be the UserID (IDCode from CV3User table) and may be prefixed with an environment identifier followed by an underscore, e.g. b96d2bf5_jongmore. 
TouchedWhen    datetime  NO  The date and time that the row was last updated and will be based on the Enterprise time zone. 
CreatedBy    varchar(50)  NO  Information about the user that created the row. This will typically be the UserID (IDCode from CV3User table) and may be prefixed with an environment identifier followed by an underscore, e.g. b96d2bf5_jongmore. 
CreatedWhen    datetime  NO  The date and time that the row was created and will be based on the Enterprise time zone. 
PharmacyStockInventoryTransactionID(PK)    int  NO  Auto generated unique primary key value. 
PharmacyStockID(FK)    int  NO  A foreign key to the PharmacyStockID column in the SXAMMPharmacyStock table. 
AdjustmentQty    numeric(14, 4)  NO  The quantity to adjust the pharmacy stock by (it is assumed to be in the same unit of measure as the pharmacy stock) 
AdjustmentUOMCode    varchar(30)  NO  Identifies the Unit of Measure associated with the Adjustment Qty. 
TransactionDtm    datetime  NO  Facility TimeZone - Identifies the date and time that the inventory transaction took place (default is current datetime, but the user may change this value). 
InventoryTransactionReasonID(FK)    int  YES  A foreign key to the InventoryTransactionReasonID column in the SXAMMInventoryTransactionReason table. 
Note    varchar(2000)  YES  Identifies a note that is associated with the inventory transaction (this field is optional). 
AutomatedProcessType    int  NO  An enumerated type with the following list of possible values: 0 = [Cart Fill],1 = [LVP],2 = [IVPB],3 = [Outpatient Order],4 = [Manual Debit/Credit],5 = [ADM - Automated Debit/Credit],6 = [Floorstock],7 = [Inventory Adjustment],8 = [Dose Send], 
MSrepl_tran_version    uniqueidentifier  NO  Optimistic lock identifier. 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 

dbo.SXAMMPharmacyStockInventoryTransaction Primary and Unique Keys 
Key Name  Key Type  Keys 
SXAMMPharmacyStockInventoryTransactionPK  PrimaryKey  PharmacyStockInventoryTransactionID