[Vtigercrm-commits] [vtiger development] #7230: Deleting the relation of sales order to invoice is resulting in query failure.

vtiger development vtiger-tickets at trac.vtiger.com
Sun Nov 20 23:52:53 PST 2011


#7230: Deleting the relation of sales order to invoice is resulting in query
failure.
-----------------------+----------------------------------------------------
 Reporter:  vikash     |       Owner:  developer 
     Type:  defect     |      Status:  new       
 Priority:  major      |   Milestone:  Unassigned
Component:  vtigercrm  |     Version:  5.3.0     
 Severity:  High       |    Keywords:            
-----------------------+----------------------------------------------------
 Steps To Reproduce :: 1)Create an invoice record with adding one sales
 order to it.
                       2)Go to More Information of that sales order.
                       3)Click on the invoice.
                       4)Try to delete that invoice.
                       5)It will results in a query failure with the
 message as :Query Failed:UPDATE vtiger_invoice set salesorderid=0 where
 invoiceid=?::ADODB error Query Failed:UPDATE vtiger_invoice set
 salesorderid=0 where invoiceid=?::->Cannot add or update a child row: a
 foreign key constraint fails (`nik_530_stable/vtiger_invoice`, CONSTRAINT
 `fk_2_vtiger_invoice` FOREIGN KEY (`salesorderid`) REFERENCES
 `vtiger_salesorder` (`salesorderid`) ON DELETE CASCADE)

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7230>
vtiger development <http://trac.vtiger.com/>
vtigerCRM



More information about the vtigercrm-commits mailing list