Merge pull request #10306 from mapiolca/patch-3

NEW Can add more lines on situation invoices at end of project when there is extra to add.
This commit is contained in:
Laurent Destailleur 2019-01-07 14:09:46 +01:00 committed by GitHub
commit 45ceab8294
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4582,7 +4582,7 @@ else if ($id > 0 || ! empty($ref))
$ret = $object->printObjectLines($action, $mysoc, $soc, $lineid, 1);
// Form to add new line
if ($object->statut == 0 && $usercancreate && $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')
{