Generation du pdf

This commit is contained in:
Rodolphe Quiedeville 2005-04-16 14:00:07 +00:00
parent 0f2a80dec9
commit 2118f094f7

View File

@ -48,6 +48,7 @@ if ($user->societe_id > 0)
/* /*
* *
*/ */
if ($_POST["action"] == 'add') if ($_POST["action"] == 'add')
{ {
$expedition = new Expedition($db); $expedition = new Expedition($db);
@ -88,6 +89,7 @@ if ($_POST["action"] == 'confirm_valid' && $_POST["confirm"] == 'yes' && $user->
$expedition = new Expedition($db); $expedition = new Expedition($db);
$expedition->fetch($_GET["id"]); $expedition->fetch($_GET["id"]);
$result = $expedition->valid($user); $result = $expedition->valid($user);
$expedition->PdfWrite();
} }
if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes') if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes')
@ -101,6 +103,13 @@ if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes')
} }
} }
if ($_GET["action"] == 'pdf')
{
$expedition = new Expedition($db);
$expedition->fetch($_GET["id"]);
$expedition->PdfWrite();
}
/* /*
* *
*/ */