Merge pull request #1768 from mika31/patch-1
Webservice thirdparty / sale representative
This commit is contained in:
commit
f1d8f3cb8e
@ -471,6 +471,11 @@ function createThirdParty($authentication,$thirdparty)
|
|||||||
if (! $error)
|
if (! $error)
|
||||||
{
|
{
|
||||||
$db->commit();
|
$db->commit();
|
||||||
|
|
||||||
|
// Patch to add capability to associate (one) sale representative
|
||||||
|
if($thirdparty['commid'] && $thirdparty['commid']>0)
|
||||||
|
$newobject->add_commercial($fuser, $thirdparty["commid"]);
|
||||||
|
|
||||||
$objectresp=array('result'=>array('result_code'=>'OK', 'result_label'=>''),'id'=>$newobject->id,'ref'=>$newobject->ref);
|
$objectresp=array('result'=>array('result_code'=>'OK', 'result_label'=>''),'id'=>$newobject->id,'ref'=>$newobject->ref);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user