Fix: Missing return code

This commit is contained in:
Laurent Destailleur 2010-12-19 11:12:14 +00:00
parent 17df30b7fa
commit 00eee13358
3 changed files with 4 additions and 4 deletions

View File

@ -264,7 +264,7 @@ function getInvoice($authentication,$id,$ref,$ref_ext)
// Create invoice // Create invoice
$objectresp = array( $objectresp = array(
'result'=>array('result_code'=>'', 'result_label'=>''), 'result'=>array('result_code'=>'OK', 'result_label'=>''),
'invoice'=>array( 'invoice'=>array(
'id' => $invoice->id, 'id' => $invoice->id,
'ref' => $invoice->ref, 'ref' => $invoice->ref,
@ -388,7 +388,7 @@ function getInvoicesForThirdParty($authentication,$idthirdparty)
} }
$objectresp=array( $objectresp=array(
'result'=>array('result_code'=>'', 'result_label'=>''), 'result'=>array('result_code'=>'OK', 'result_label'=>''),
'invoices'=>$linesinvoice 'invoices'=>$linesinvoice
); );

View File

@ -114,7 +114,7 @@ function getVersions($authentication)
if (! $error) if (! $error)
{ {
$objectresp['result']=array('result_code'=>'', 'result_label'=>''); $objectresp['result']=array('result_code'=>'OK', 'result_label'=>'');
$objectresp['dolibarr']=version_dolibarr(); $objectresp['dolibarr']=version_dolibarr();
$objectresp['os']=version_os(); $objectresp['os']=version_os();
$objectresp['php']=version_php(); $objectresp['php']=version_php();

View File

@ -182,7 +182,7 @@ function getThirdParty($authentication,$id,$ref,$ref_ext)
{ {
// Create // Create
$objectresp = array( $objectresp = array(
'result'=>array('result_code'=>'', 'result_label'=>''), 'result'=>array('result_code'=>'OK', 'result_label'=>''),
'thirdparty'=>array( 'thirdparty'=>array(
'id' => $thirdparty->id, 'id' => $thirdparty->id,
'ref' => $thirdparty->name, 'ref' => $thirdparty->name,