Prise en charge des Travaux supplémentaires

Corrige la filtration pour permettre l'ajout de ligne lors de la présence de travaux supplémentaires en cours de chantier.
This commit is contained in:
Pierre Ardoin 2019-01-29 11:19:11 +01:00 committed by GitHub
parent 508fb5c9cb
commit 30548d977f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4540,7 +4540,7 @@ else if ($id > 0 || ! empty($ref))
$ret = $object->printObjectLines($action, $mysoc, $soc, $lineid, 1);
// Form to add new line
if ($object->statut == 0 && $user->rights->facture->creer && $action != 'valid' && $action != 'editline' && ($object->is_first() || !$object->situation_cycle_ref))
if ($object->statut == 0 && $usercancreate && $action != 'valid' && $action != 'editline')
{
if ($action != 'editline' && $action != 'selectlines')
{