Change invoice_number in Receiving to be Reference, tidy up code (#635)

This commit is contained in:
FrancescoUK
2016-06-21 08:48:36 +01:00
parent 4cf1c31d4f
commit bb85a172a2
27 changed files with 456 additions and 684 deletions

View File

@@ -441,11 +441,11 @@ CREATE TABLE `ospos_receivings` (
`comment` text NOT NULL,
`receiving_id` int(10) NOT NULL AUTO_INCREMENT,
`payment_type` varchar(20) DEFAULT NULL,
`invoice_number` varchar(32) DEFAULT NULL,
`reference` varchar(32) DEFAULT NULL,
PRIMARY KEY (`receiving_id`),
KEY `supplier_id` (`supplier_id`),
KEY `employee_id` (`employee_id`),
UNIQUE KEY `invoice_number` (`invoice_number`)
KEY `reference` (`reference`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
--