when updating the debtor ,
got error like this
Notice: Object of class stdClass could not be converted to int in /opt/lampp/lib/php/DataHub_EConomic/DataHub_EConomic_Webservices.php on line 479SOAP-ERROR: Encoding: object has no 'Id' property
code :
$debtordata = array(Number = $row['customer_id'],
Handle = array(Number = $first_debtor_group_handle),
'Number' = $row['customer_id'],
'VatZone' = 'EU',
'IsAccessible' = true,
'Name' = $row['firstname'],
'Email' = 'ssss@gmail.in',
'CINumber' = 143,
'TelephoneAndFaxNumber' = '111111',
'Website' = 'www.google.in',
'Address' = $row['address_1'],
'PostalCode' = $row['postcode'],
'City' = $row['city'],
'Country' = 'INDIA',
'DebtorGroupHandle' = $debtor_group_handles,
//'CurrencyHandle' = $currency_handle,
// 'TermOfPaymentHandle' = $term_handle,
);*/
//$this-client-Debtor_UpdateFromData(array('Number' = 1,data = $debtordata))Debtor_UpdateFromDataResult;
// $this-client-Debtor_UpdateFromData(array('number' = 1,'data' = (object)$debtordata))-Debtor_UpdateFromDataResult;
//echo updated successfully;
error :
Notice: Object of class stdClass could not be converted to int in /opt/lampp/lib/php/DataHub_EConomic/DataHub_EConomic_Webservices.php on line 479SOAP-ERROR: Encoding: object has no 'Id' property
How cani fix this problem
please give me some suggetions....
got error like this
Notice: Object of class stdClass could not be converted to int in /opt/lampp/lib/php/DataHub_EConomic/DataHub_EConomic_Webservices.php on line 479SOAP-ERROR: Encoding: object has no 'Id' property
code :
$debtordata = array(Number = $row['customer_id'],
Handle = array(Number = $first_debtor_group_handle),
'Number' = $row['customer_id'],
'VatZone' = 'EU',
'IsAccessible' = true,
'Name' = $row['firstname'],
'Email' = 'ssss@gmail.in',
'CINumber' = 143,
'TelephoneAndFaxNumber' = '111111',
'Website' = 'www.google.in',
'Address' = $row['address_1'],
'PostalCode' = $row['postcode'],
'City' = $row['city'],
'Country' = 'INDIA',
'DebtorGroupHandle' = $debtor_group_handles,
//'CurrencyHandle' = $currency_handle,
// 'TermOfPaymentHandle' = $term_handle,
);*/
//$this-client-Debtor_UpdateFromData(array('Number' = 1,data = $debtordata))Debtor_UpdateFromDataResult;
// $this-client-Debtor_UpdateFromData(array('number' = 1,'data' = (object)$debtordata))-Debtor_UpdateFromDataResult;
//echo updated successfully;
error :
Notice: Object of class stdClass could not be converted to int in /opt/lampp/lib/php/DataHub_EConomic/DataHub_EConomic_Webservices.php on line 479SOAP-ERROR: Encoding: object has no 'Id' property
How cani fix this problem
please give me some suggetions....