Patch de Simon Tosser corrigeant pb sur expeditions
This commit is contained in:
parent
1621ad2f05
commit
9e1ecdf43a
@ -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;
|
||||
|
||||
|
||||
@ -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.'&action=pdf">'.$langs->trans('BuildPDF').'</a>';
|
||||
print '</div><br>';
|
||||
|
||||
/*
|
||||
* Documents générés
|
||||
|
||||
Loading…
Reference in New Issue
Block a user