Fix: Missing return code
This commit is contained in:
parent
17df30b7fa
commit
00eee13358
@ -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
|
||||
|
||||
);
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user