`rate` double NOT NULL default '1',
`alloc` double NOT NULL default '0',
`tax_included` tinyint(1) NOT NULL default '0',
- PRIMARY KEY (`type`,`trans_no`),
+ PRIMARY KEY (`type`,`trans_no`,`supplier_id`),
KEY `supplier_id` (`supplier_id`),
KEY `tran_date` (`tran_date`)
) ENGINE=InnoDB;