Editing Purchasing.PurchaseOrderHeader (table)
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 346: | Line 346: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key. | + | | Primary key.PK_PurchaseOrderHeader_PurchaseOrderID |
|- valign="top" | |- valign="top" | ||
| RevisionNumber | | RevisionNumber | ||
Line 352: | Line 352: | ||
| not null | | not null | ||
| (0) | | (0) | ||
− | | Incremental number to track changes to the purchase order over time. | + | | Incremental number to track changes to the purchase order over time. |
|- valign="top" | |- valign="top" | ||
| Status | | Status | ||
Line 358: | Line 358: | ||
| not null | | not null | ||
| (1) | | (1) | ||
− | | Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete | + | | Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete |
|- valign="top" | |- valign="top" | ||
| EmployeeID | | EmployeeID | ||
Line 364: | Line 364: | ||
| not null | | not null | ||
| | | | ||
− | | Employee who created the purchase order. Foreign key to Employee.EmployeeID. | + | | Employee who created the purchase order. Foreign key to Employee.EmployeeID.IX_PurchaseOrderHeader_EmployeeID |
|- valign="top" | |- valign="top" | ||
| VendorID | | VendorID | ||
Line 370: | Line 370: | ||
| not null | | not null | ||
| | | | ||
− | | Vendor with whom the purchase order is placed. Foreign key to Vendor.VendorID. | + | | Vendor with whom the purchase order is placed. Foreign key to Vendor.VendorID.IX_PurchaseOrderHeader_VendorID |
|- valign="top" | |- valign="top" | ||
| ShipMethodID | | ShipMethodID | ||
Line 376: | Line 376: | ||
| not null | | not null | ||
| | | | ||
− | | Shipping method. Foreign key to ShipMethod.ShipMethodID. | + | | Shipping method. Foreign key to ShipMethod.ShipMethodID. |
|- valign="top" | |- valign="top" | ||
| OrderDate | | OrderDate | ||
Line 382: | Line 382: | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Purchase order creation date. | + | | Purchase order creation date. |
|- valign="top" | |- valign="top" | ||
| ShipDate | | ShipDate | ||
Line 388: | Line 388: | ||
| null | | null | ||
| | | | ||
− | | Estimated shipment date from the vendor. | + | | Estimated shipment date from the vendor. |
|- valign="top" | |- valign="top" | ||
| SubTotal | | SubTotal | ||
Line 394: | Line 394: | ||
| not null | | not null | ||
| (0.00) | | (0.00) | ||
− | | Purchase order subtotal. Computed as SUM(PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID. | + | | Purchase order subtotal. Computed as SUM(PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID. |
|- valign="top" | |- valign="top" | ||
| TaxAmt | | TaxAmt | ||
Line 400: | Line 400: | ||
| not null | | not null | ||
| (0.00) | | (0.00) | ||
− | | Tax amount. | + | | Tax amount. |
|- valign="top" | |- valign="top" | ||
| Freight | | Freight | ||
Line 406: | Line 406: | ||
| not null | | not null | ||
| (0.00) | | (0.00) | ||
− | | Shipping cost. | + | | Shipping cost. |
|- valign="top" | |- valign="top" | ||
| TotalDue | | TotalDue | ||
Line 412: | Line 412: | ||
| | | | ||
| | | | ||
− | | Total due to vendor. Computed as Subtotal + TaxAmt + Freight. | + | | Total due to vendor. Computed as Subtotal + TaxAmt + Freight. |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 418: | Line 418: | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated. |
|} | |} | ||