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