Skip to content
Snippets Groups Projects
Commit f1d8f3cb authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #1768 from mika31/patch-1

Webservice thirdparty / sale representative
parents f9dc010b f96f8384
No related branches found
No related tags found
No related merge requests found
......@@ -471,6 +471,11 @@ function createThirdParty($authentication,$thirdparty)
if (! $error)
{
$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);
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment