Field Name | Data Type | Size | Original Type | Default | Nullable | Description | Check |
PurchaseOrderID | int identity | | int | | Not null | Primary key. | |
RevisionNumber | tinyint | | | (0) | Not null | Incremental number to track changes to the purchase order over time. | |
Status | tinyint | | | (1) | Not null | Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete | ([Status]>=(1) AND [Status]<=(4)) |
EmployeeID | int | | | | Not null | Employee who created the purchase order. Foreign key to Employee.EmployeeID. | |
VendorID | int | | | | Not null | Vendor with whom the purchase order is placed. Foreign key to Vendor.VendorID. | |
ShipMethodID | int | | | | Not null | Shipping method. Foreign key to ShipMethod.ShipMethodID. | |
OrderDate | datetime | | | getdate() | Not null | Purchase order creation date. | |
ShipDate | datetime | | | | Null | Estimated shipment date from the vendor. | |
SubTotal | money | 19,4 | decimal(19,4) | (0.00) | Not null | Purchase order subtotal. Computed as SUM(PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID. | ([SubTotal]>=(0.00)) |
TaxAmt | money | 19,4 | decimal(19,4) | (0.00) | Not null | Tax amount. | ([TaxAmt]>=(0.00)) |
Freight | money | 19,4 | decimal(19,4) | (0.00) | Not null | Shipping cost. | ([Freight]>=(0.00)) |
TotalDue | money | 19,4 | decimal(19,4) | | Not null | Total due to vendor. Computed as Subtotal + TaxAmt + Freight. | |
ModifiedDate | datetime | | | getdate() | Not null | Date and time the record was last updated. | |
The object has no extended properties.