Generation du pdf
This commit is contained in:
parent
0f2a80dec9
commit
2118f094f7
@ -22,7 +22,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\file htdocs/expedition/fiche.php
|
\file htdocs/expedition/fiche.php
|
||||||
\ingroup expedition
|
\ingroup expedition
|
||||||
\brief Fiche descriptive d'une expedition
|
\brief Fiche descriptive d'une expedition
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user