Patch de Simon Tosser corrigeant pb sur expeditions

This commit is contained in:
Laurent Destailleur 2005-07-09 14:58:25 +00:00
parent 1621ad2f05
commit 9e1ecdf43a
2 changed files with 11 additions and 0 deletions

View File

@ -430,6 +430,7 @@ class Expedition
$module_file_name = DOL_DOCUMENT_ROOT."/expedition/mods/pdf/pdf_expedition_".EXPEDITION_ADDON_PDF.".modules.php";
$mod = "pdf_expedition_".EXPEDITION_ADDON_PDF;
$this->fetch_commande();
require_once $module_file_name;

View File

@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005 Simon TOSSER <simon@kornog-computing.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -109,6 +110,10 @@ if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes')
}
}
/*
* Générer ou regénérer le PDF
*/
if ($_GET["action"] == 'pdf')
{
$expedition = new Expedition($db);
@ -537,6 +542,11 @@ else
}
$db->free($resql);
}
//Barre d'action
print '<div class="tabsAction">';
//Build PDF
print '<a class="butAction" href="fiche.php?id='.$expedition->id.'&amp;action=pdf">'.$langs->trans('BuildPDF').'</a>';
print '</div><br>';
/*
* Documents générés