Fixed debtor_trans primary key to allow multiply AR accounts in journal transactions.
[fa-stable.git] / sql / en_US-new.sql
index ad8316591e6bd9ddaf1ee594d67a5e60096b74c9..cf3920cb57e745fed265dc4430d31bafbb44e1ae 100644 (file)
@@ -639,7 +639,7 @@ CREATE TABLE IF NOT EXISTS `0_debtor_trans` (
   `dimension2_id` int(11) NOT NULL default '0',
   `payment_terms` int(11) default NULL,
   `tax_included` tinyint(1) unsigned NOT NULL default '0',
-  PRIMARY KEY (`type`,`trans_no`),
+  PRIMARY KEY (`type`,`trans_no`,`debtor_no`),
   KEY `debtor_no` (`debtor_no`,`branch_code`),
   KEY `tran_date` (`tran_date`),
   KEY `order_` (`order_`)