Topic: API modifyCustomer
In my attempt to update customers with the API, I may have discovered a bug. OR im just doing something wrong.
$API->modifyCustomer
The QBXML that gets caught as an error in my queue is missing a required "EditSequence" immediately after "ListID" according to the validation tool. I have tried manually pulling it down and setting with the setEditSequence in an effort to force the output, but no go.
This is my logic:
// Create new customer object from existing customer
$Customer = new QuickBooks_Object_Customer($CustomerID);
// change some properties
$Customer->setCompanyName($cpname);
$Customer->setContact($ctname);
$Customer->setPhone($phone);
$Customer->setEmail($email);
$Customer->setFax($fax);
$Customer->setBillAddress($addr1, $addr2, $addr3, $addr4, $addr5, $city, $state, $province, $postalcode, $country);
// commit changes back to QuickBooks
$API->modifyCustomer($Customer);
is this wrong? im using a nightly build from 6/25/2010 and im gonna pull the new one down and see if that helps. Thanks in advance for the direction.