diff --git a/htdocs/compta/sociales/document.php b/htdocs/compta/sociales/document.php index 048d35d73f1..0bf1e7f6f13 100644 --- a/htdocs/compta/sociales/document.php +++ b/htdocs/compta/sociales/document.php @@ -161,6 +161,7 @@ if ($object->id) $modulepart = 'tax'; $permission = $user->rights->tax->charges->creer; + $permtoedit = $user->rights->fournisseur->facture->creer; $param = '&id=' . $object->id; include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php'; } diff --git a/htdocs/core/tpl/document_actions_post_headers.tpl.php b/htdocs/core/tpl/document_actions_post_headers.tpl.php index f50dc62fb9b..8380d5c23f5 100644 --- a/htdocs/core/tpl/document_actions_post_headers.tpl.php +++ b/htdocs/core/tpl/document_actions_post_headers.tpl.php @@ -62,7 +62,7 @@ $savingdocmask=''; if (empty($conf->global->MAIN_DISABLE_SUGGEST_REF_AS_PREFIX)) { //var_dump($modulepart); - if (in_array($modulepart,array('facture_fournisseur','commande_fournisseur','facture','commande','propal','supplier_proposal','ficheinter','contract','project','project_task','expensereport'))) + if (in_array($modulepart,array('facture_fournisseur','commande_fournisseur','facture','commande','propal','supplier_proposal','ficheinter','contract','project','project_task','expensereport','tax'))) { $savingdocmask=dol_sanitizeFileName($object->ref).'-__file__'; } @@ -87,7 +87,7 @@ $formfile->form_attach_new_file( ); $disablemove=1; -if (in_array($modulepart, array('product', 'produit', 'societe', 'user'))) $disablemove=0; // Drag and drop for up and down allowed on product +if (in_array($modulepart, array('product', 'produit', 'societe', 'user'))) $disablemove=0; // Drag and drop for up and down allowed on product, thirdparty, ... // List of document $formfile->list_of_documents( diff --git a/htdocs/fourn/facture/document.php b/htdocs/fourn/facture/document.php index 113f262e2a9..5f8c5787773 100644 --- a/htdocs/fourn/facture/document.php +++ b/htdocs/fourn/facture/document.php @@ -244,6 +244,8 @@ if ($object->id > 0) print ''; print ''; + print '
'; + dol_fiche_end();