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
|
// 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
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|||||||
@ -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();
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user