Début ajout modéles commande et facture fournisseur

This commit is contained in:
Regis Houssin 2006-02-17 18:18:09 +00:00
parent 4061563b71
commit 3296c33fc6
2 changed files with 4 additions and 2 deletions

View File

@ -103,7 +103,7 @@ if ($_GET["action"] == 'del')
} }
$propale_fournisseur_addon_var_pdf = $conf->global->COMMANDE_SUPPLIER_ADDON_PDF; $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")); print_titre($langs->trans("OrdersSetup"));

View File

@ -211,13 +211,15 @@ if ($_POST["action"] == 'confirm_cancel' && $_POST["confirm"] == yes && $user->r
*/ */
if ($_POST['action'] == 'builddoc') 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') if($_GET['action'] == 'builddoc')
{ {
$commande = new CommandeFournisseur($db); $commande = new CommandeFournisseur($db);
$commande->fetch($_GET['id']); $commande->fetch($_GET['id']);
commande_supplier_pdf_create($db, $_GET['id'],$commande->modelpdf); commande_supplier_pdf_create($db, $_GET['id'],$commande->modelpdf);
$commande->modelpdf = $_POST['model'];
} }
/* /*