Fix: link must not be visible if module disabled

This commit is contained in:
Laurent Destailleur 2015-04-13 13:22:12 +02:00
parent c228302039
commit dbaaa44c76
2 changed files with 12 additions and 10 deletions

View File

@ -2681,6 +2681,8 @@ elseif (! empty($object->id))
} }
// Create bill // Create bill
if (! empty($conf->facture->enabled))
{
if (! empty($conf->fournisseur->enabled) && ($object->statut >= 2 && $object->statut != 9)) // 2 means accepted if (! empty($conf->fournisseur->enabled) && ($object->statut >= 2 && $object->statut != 9)) // 2 means accepted
{ {
if ($user->rights->fournisseur->facture->creer) if ($user->rights->fournisseur->facture->creer)
@ -2693,7 +2695,7 @@ elseif (! empty($object->id))
// print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&amp;action=classifybilled">'.$langs->trans("ClassifyBilled").'</a>'; // print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&amp;action=classifybilled">'.$langs->trans("ClassifyBilled").'</a>';
//} //}
} }
}
// Create a remote order using WebService only if module is activated // Create a remote order using WebService only if module is activated
if (! empty($conf->syncsupplierwebservices->enabled) && $object->statut >= 2) // 2 means accepted if (! empty($conf->syncsupplierwebservices->enabled) && $object->statut >= 2) // 2 means accepted

View File

@ -316,7 +316,7 @@ if ($resql)
print "</table>\n"; print "</table>\n";
print "</form>\n"; print "</form>\n";
print '<br>'.img_help(1,'').' '.$langs->trans("ToBillSeveralOrderSelectCustomer", $langs->transnoentitiesnoconv("CreateInvoiceForThisCustomer")).'<br>'; if (! empty($conf->facture->enable)) print '<br>'.img_help(1,'').' '.$langs->trans("ToBillSeveralOrderSelectCustomer", $langs->transnoentitiesnoconv("CreateInvoiceForThisCustomer")).'<br>';
$db->free($resql); $db->free($resql);
} }