Difference between revisions of "VbzCart/tables/rstk req"
Jump to navigation
Jump to search
m (VbzCart/tables/core restock new moved to VbzCart/tables/rstk req: reorganized naming for restock tables) |
m (→SQL: updated name of table) |
||
Line 3: | Line 3: | ||
* '''Modified''': 2008-11-07; several fields moved to rstk_recd; to replace [[../core_restocks]] | * '''Modified''': 2008-11-07; several fields moved to rstk_recd; to replace [[../core_restocks]] | ||
==SQL== | ==SQL== | ||
− | <section begin=sql /><mysql>CREATE TABLE ` | + | <section begin=sql /><mysql>CREATE TABLE `rstk_req` ( |
`ID` INT NOT NULL AUTO_INCREMENT, | `ID` INT NOT NULL AUTO_INCREMENT, | ||
`ID_Supplier` INT NOT NULL COMMENT "cat_supp.ID of supplier", | `ID_Supplier` INT NOT NULL COMMENT "cat_supp.ID of supplier", |
Revision as of 01:53, 8 November 2008
About
- Modified: 2008-11-07; several fields moved to rstk_recd; to replace VbzCart/tables/core_restocks
SQL
<mysql>CREATE TABLE `rstk_req` (
`ID` INT NOT NULL AUTO_INCREMENT, `ID_Supplier` INT NOT NULL COMMENT "cat_supp.ID of supplier", `ID_Warehouse` INT COMMENT "cat_supp.ID of ship-to warehouse", `PurchOrdNum` VARCHAR(63) COMMENT "our purchase order number", `SuppOrdNum` VARCHAR(63) COMMENT "supplier's order number", `CarrierDescr` VARCHAR(63) COMMENT "shipping carrier requested (UPS, USPS...)",
/* eventually there will be a table of carriers so we can retrieve tracking info or at least pull it up from the web */
`TotalCalcMerch` DECIMAL(9,2) COMMENT "total cost of merchandise calculated by us", `TotalEstFinal` DECIMAL(9,2) COMMENT "estimate of final charge",
/* Final = Merch + Ship + Adj */
`PayMethod` VARCHAR(63) COMMENT "how payment was made (typically: which credit card?)", `WhenCreated` DATETIME DEFAULT NULL COMMENT "when restock order was started (created)", `WhenOrdered` DATETIME DEFAULT NULL COMMENT "when order was placed with supplier", `WhenConfirmed` DATETIME DEFAULT NULL COMMENT "when order was confirmed with supplier", `WhenKilled` DATETIME DEFAULT NULL COMMENT "when order was negated, cancelled, or otherwise terminated unsuccessfully", `WhenExpectedOrig` DATETIME DEFAULT NULL COMMENT "when we originally expected to receive order", `WhenExpectedFinal` DATETIME DEFAULT NULL COMMENT "most recent ETA", `isLocked` BOOL DEFAULT FALSE COMMENT "TRUE = items may not be edited", `Notes` TEXT DEFAULT NULL COMMENT "human-entered notes", PRIMARY KEY(`ID`) ) ENGINE = MYISAM;</mysql>