Dbut ajout bon de livraison

This commit is contained in:
Regis Houssin 2006-05-30 14:49:17 +00:00
parent a0493738b2
commit c07eb9cd2a
2 changed files with 2 additions and 2 deletions

View File

@ -510,7 +510,7 @@ else
if ($conf->livraison->enabled && $expedition->statut == 1 && $user->rights->expedition->livraison->creer)
{
print '<a class="butAction" href="'.DOL_URL_ROOT.'/livraison/fiche.php?id='.$expedition->id.'&amp;action=create_delivery">'.$langs->trans("DeliveryOrder").'</a>';
print '<a class="butAction" href="'.DOL_URL_ROOT.'/livraison/fiche.php?expid='.$expedition->id.'&amp;action=create_delivery">'.$langs->trans("DeliveryOrder").'</a>';
}
print '<a class="butAction" href="fiche.php?id='.$expedition->id.'&amp;action=builddoc">'.$langs->trans('BuildPDF').'</a>';

View File

@ -147,7 +147,7 @@ if ($_REQUEST['action'] == 'builddoc') // En get ou en post
if ($_POST["action"] == 'create_delivery' && $user->rights->expedition->livraison->creer)
{
$expedition = new Expedition($db);
$expedition->fetch($_GET["id"]);
$expedition->fetch($_GET["expid"]);
$expedition->create_delivery($user);
}