Update html.formcontract.class.php
This commit is contained in:
parent
f4af9ec22f
commit
4bebc8149b
1 changed files with 2 additions and 2 deletions
|
|
@ -108,12 +108,12 @@ class FormContract
|
|||
else
|
||||
{
|
||||
$disabled=0;
|
||||
if (! $obj->statut > 0)
|
||||
if ( $obj->statut == 0)
|
||||
{
|
||||
$disabled=1;
|
||||
$labeltoshow.=' ('.$langs->trans("Draft").')';
|
||||
}
|
||||
if ($socid > 0 && (! empty($obj->fk_soc) && $obj->fk_soc != $socid))
|
||||
if ( empty($conf->global->CONTRACT_ALLOW_TO_LINK_FROM_OTHER_COMPANY) && $socid > 0 && (! empty($obj->fk_soc) && $obj->fk_soc != $socid))
|
||||
{
|
||||
$disabled=1;
|
||||
$labeltoshow.=' - '.$langs->trans("LinkedToAnotherCompany");
|
||||
|
|
|
|||
Loading…
Reference in a new issue