Dbut ajout modles commande et facture fournisseur
This commit is contained in:
parent
4061563b71
commit
3296c33fc6
@ -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"));
|
||||
|
||||
|
||||
@ -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'];
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user