[Vtigercrm-commits] [vtiger development] #48: Sales Orders Created from Quote are not saved and do not retain associations
vtiger development
vtiger-tickets at vtiger.fosslabs.com
Wed Apr 12 17:29:18 EDT 2006
#48: Sales Orders Created from Quote are not saved and do not retain
associations
-----------------------------------------------+----------------------------
Reporter: onwealdandy <arodes at onweald.com> | Owner: developer
Type: defect | Status: new
Priority: major | Milestone: 4.2.4
Component: vtigercrm | Version: 4.2.3
Resolution: | Keywords: order
-----------------------------------------------+----------------------------
Comment (by allanbush):
{{{
(mysql): insert into salesorder (salesorderid, subject, potentialid,
customerno, quoteid, purchaseorder, contactid, duedate, carrier, pending,
sostatus, salestax, adjustment, salescommission, exciseduty, total,
subtotal, accountid, terms_conditions) values(9, 'testQ', 5, '', 7, '',
'', '2006-04-12', 'FedEx', '', 'Created', 0.000, 0.000, '', '', 4.000,
4.000, 3, '') 1216: Cannot add or update a child row: a foreign key
constraint fails
adodb_mysql._execute(insert into salesorder (salesorderid,
subject, potentialid, customerno, quoteid, purchaseorder, contactid,
duedate, carrier, pen..., false) % line 857, file: adodb.inc.php
adodb_mysql.execute(insert into salesorder (salesorderid,
subject, potentialid, customerno, quoteid, purchaseorder, contactid,
duedate, carrier, pen...) % line 234, file: PearDatabase.php
peardatabase.query(insert into salesorder (salesorderid, subject,
potentialid, customerno, quoteid, purchaseorder, contactid, duedate,
carrier, pen...) % line 677, file: CRMEntity.php
salesorder.insertintoentitytable(salesorder, SalesOrder) % line
119, file: CRMEntity.php
salesorder.saveentity(SalesOrder, null) % line 947, file:
CRMEntity.php
}}}
Relevant database error.
MySQL doesn't let '' satisfy the fk constraint, however null will.
--
Ticket URL: <http://vtiger.fosslabs.com/cgi-bin/trac.cgi/ticket/48>
vtiger development <http://vtiger.fosslabs.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list