Lines 1526-1534
CREATE TABLE `branchtransfers` (
Link Here
|
1526 |
`datesent` datetime DEFAULT NULL COMMENT 'the date the transfer was initialized', |
1526 |
`datesent` datetime DEFAULT NULL COMMENT 'the date the transfer was initialized', |
1527 |
`frombranch` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'the branch the transfer is coming from', |
1527 |
`frombranch` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'the branch the transfer is coming from', |
1528 |
`datearrived` datetime DEFAULT NULL COMMENT 'the date the transfer arrived at its destination', |
1528 |
`datearrived` datetime DEFAULT NULL COMMENT 'the date the transfer arrived at its destination', |
|
|
1529 |
`datecancelled` datetime default NULL COMMENT 'the date the transfer was cancelled', |
1529 |
`tobranch` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'the branch the transfer was going to', |
1530 |
`tobranch` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'the branch the transfer was going to', |
1530 |
`comments` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'any comments related to the transfer', |
1531 |
`comments` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'any comments related to the transfer', |
1531 |
`reason` enum('Manual','StockrotationAdvance','StockrotationRepatriation','ReturnToHome','ReturnToHolding','RotatingCollection','Reserve','LostReserve','CancelReserve') COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'what triggered the transfer', |
1532 |
`reason` enum('Manual','StockrotationAdvance','StockrotationRepatriation','ReturnToHome','ReturnToHolding','RotatingCollection','Reserve','LostReserve','CancelReserve') COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'what triggered the transfer', |
|
|
1533 |
`cancellation_reason` ENUM('Manual', 'StockrotationAdvance', 'StockrotationRepatriation', 'ReturnToHome', 'ReturnToHolding', 'RotatingCollection', 'Reserve', 'LostReserve', 'CancelReserve') default NULL COMMENT 'what triggered the transfer cancellation', |
1532 |
PRIMARY KEY (`branchtransfer_id`), |
1534 |
PRIMARY KEY (`branchtransfer_id`), |
1533 |
KEY `frombranch` (`frombranch`), |
1535 |
KEY `frombranch` (`frombranch`), |
1534 |
KEY `tobranch` (`tobranch`), |
1536 |
KEY `tobranch` (`tobranch`), |
1535 |
- |
|
|