diff --git a/htdocs/admin/fournisseur.php b/htdocs/admin/fournisseur.php index 57056893e1c..e336f6ae6a3 100644 --- a/htdocs/admin/fournisseur.php +++ b/htdocs/admin/fournisseur.php @@ -103,7 +103,7 @@ if ($_GET["action"] == 'del') } $propale_fournisseur_addon_var_pdf = $conf->global->COMMANDE_SUPPLIER_ADDON_PDF; -$dir = "../fourn/commande/modules/"; +$dir = "../fourn/commande/modules/pdf/"; print_titre($langs->trans("OrdersSetup")); diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index 54bd3897228..3a691da2f38 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -211,13 +211,15 @@ if ($_POST["action"] == 'confirm_cancel' && $_POST["confirm"] == yes && $user->r */ if ($_POST['action'] == 'builddoc') { - commande_supplier_pdf_create($db, $_GET['id'],$_POST['model']); + commande_supplier_pdf_create($db, $_GET['id'],$_POST['model']); + $commande->modelpdf = $_POST['model']; } if($_GET['action'] == 'builddoc') { $commande = new CommandeFournisseur($db); $commande->fetch($_GET['id']); commande_supplier_pdf_create($db, $_GET['id'],$commande->modelpdf); + $commande->modelpdf = $_POST['model']; } /*