Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion htdocs/fourn/facture/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
$permissiontoedit = $usercancreate; // Used by the include of actions_lineupdown.inc.php
$permissiontoadd = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
$permissiontodelete = $usercandelete;
if (getDolGlobalString('MAIN_FACTUREFOURN_VALIDATE_SUPERSEED_CREATE')) {$permissiontoadd = $usercanvalidate or $usercancreate ; } else { $permissiontoadd = $usercancreate; }

$error = 0;

Expand Down Expand Up @@ -1930,7 +1931,7 @@
}

$action = '';
} elseif ($action == 'classin' && $usercancreate) {
} elseif ($action == 'classin' && ($usercancreate || (getDolGlobalString('MAIN_FACTUREFOURN_VALIDATE_SUPERSEED_CREATE') && $permissiontoadd ))) {
$object->fetch($id);
$result = $object->setProject($projectid);
} elseif ($action == 'confirm_edit' && $confirm == 'yes' && $usercancreate) {
Expand Down Expand Up @@ -2023,6 +2024,7 @@
// Actions to build doc
$upload_dir = $conf->fournisseur->facture->dir_output;
$permissiontoadd = $usercancreate;
if (getDolGlobalString('MAIN_FACTUREFOURN_VALIDATE_SUPERSEED_CREATE')) {$permissiontoadd = $usercanvalidate or $usercancreate ; } else { $permissiontoadd = $usercancreate; }
include DOL_DOCUMENT_ROOT.'/core/actions_builddoc.inc.php';

// Make calculation according to calculationrule
Expand Down
Loading