ALTER TABLE  `documents` ADD  `shipping_details` TEXT NULL;
ALTER TABLE  `documents` ADD  `revision` INT NOT NULL DEFAULT  '0';
ALTER TABLE  `documents` ADD  `bill_to` TEXT NULL , ADD  `ship_to` TEXT NULL;
ALTER TABLE  `documents` CHANGE  `type`  `type` ENUM(  'quote',  'invoice',  'purchaseOrder',  'orderAck',  'packingList' ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL;


DROP TABLE `order_acknowledgements`;

CREATE TABLE `order_acknowledgements` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created` datetime NOT NULL,
  `modified` datetime NOT NULL,
  `issue_date` date NOT NULL,
  `ship_via` varchar(255) NOT NULL,
  `job_id` int(11) NOT NULL,
  `fob` varchar(255) NOT NULL,
  `estimated_delivery` varchar(255) NOT NULL,
  `document_id` int(11) NOT NULL,
  `enquiry_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;


ALTER TABLE  `invoices` ADD  `ship_via` VARCHAR( 255 ) NOT NULL AFTER  `payment_received_date` ,
ADD  `fob` VARCHAR( 255 ) NOT NULL AFTER  `ship_via`;