diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php index a639fea53ea..d37cb327ec5 100644 --- a/htdocs/comm/card.php +++ b/htdocs/comm/card.php @@ -1007,7 +1007,15 @@ if ($id > 0) if (! empty($conf->facture->enabled)) { - if ($user->rights->facture->creer && $object->status==1) + if (empty($user->rights->facture->creer)) + { + print '
'; + } + else if ($object->status != 1) + { + print ''; + } + else { $langs->load("bills"); $langs->load("orders"); @@ -1022,10 +1030,6 @@ if ($id > 0) else print ''; } - else - { - print ''; - } } } diff --git a/htdocs/langs/en_US/companies.lang b/htdocs/langs/en_US/companies.lang index 553e4d884e8..49c409d81e8 100644 --- a/htdocs/langs/en_US/companies.lang +++ b/htdocs/langs/en_US/companies.lang @@ -388,6 +388,7 @@ LastModifiedThirdParties=Latest %s modified third parties UniqueThirdParties=Total of unique third parties InActivity=Open ActivityCeased=Closed +ThirdPartyIsClosed=Third party is closed ProductsIntoElements=List of products/services into %s CurrentOutstandingBill=Current outstanding bill OutstandingBill=Max. for outstanding bill