Following PR#15336: it should not be possible to modify the third party of an invoice

This commit is contained in:
Florian Mortgat 2020-11-09 17:09:06 +01:00
parent 4689d42afd
commit bf27c56fa7

View File

@ -345,15 +345,6 @@ if (empty($reshook))
}
}
elseif ($action == 'set_thirdparty' && $usercancreate)
{
$object->fetch($id);
$object->setValueFrom('fk_soc', $socid, '', null, 'int', '', $user, 'BILL_MODIFY');
header('Location: '.$_SERVER["PHP_SELF"].'?facid='.$id);
exit();
}
elseif ($action == 'classin' && $usercancreate)
{
$object->fetch($id);