Qual: A closed contract no more invoiceable
This commit is contained in:
parent
16e5742ae2
commit
c8a1bc5490
1 changed files with 1 additions and 1 deletions
|
|
@ -1358,7 +1358,7 @@ else
|
|||
else print '<a class="butActionRefused" href="#" title="'.$langs->trans("NotEnoughPermissions").'">'.$langs->trans("Validate").'</a>';
|
||||
}
|
||||
|
||||
if ($conf->facture->enabled && $object->statut > 0)
|
||||
if ($conf->facture->enabled && $object->statut > 0 && $object->nbofservicesclosed < $nbofservices)
|
||||
{
|
||||
$langs->load("bills");
|
||||
if ($user->rights->facture->creer) print '<a class="butAction" href="'.DOL_URL_ROOT.'/compta/facture.php?action=create&origin='.$object->element.'&originid='.$object->id.'&socid='.$object->thirdparty->id.'">'.$langs->trans("CreateBill").'</a>';
|
||||
|
|
|
|||
Loading…
Reference in a new issue