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
$objectresp = array(
'result'=>array('result_code'=>'', 'result_label'=>''),
'result'=>array('result_code'=>'OK', 'result_label'=>''),
'invoice'=>array(
'id' => $invoice->id,
'ref' => $invoice->ref,
@ -388,7 +388,7 @@ function getInvoicesForThirdParty($authentication,$idthirdparty)
}
$objectresp=array(
'result'=>array('result_code'=>'', 'result_label'=>''),
'result'=>array('result_code'=>'OK', 'result_label'=>''),
'invoices'=>$linesinvoice
);

View File

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

View File

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