Skip to content
Snippets Groups Projects
Commit f96f8384 authored by mika31's avatar mika31
Browse files

Webservice thirdparty / sale representative

Little patch to add capability to associate (one) sale representative on thirdparty creation.
parent a2760aea
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.
Please register or to comment