Fix: specimen of delivery receipts
This commit is contained in:
parent
dddb23e3bb
commit
291b64331d
@ -55,9 +55,9 @@ if ($_GET["action"] == 'specimen')
|
|||||||
{
|
{
|
||||||
$modele=$_GET["module"];
|
$modele=$_GET["module"];
|
||||||
|
|
||||||
$exp = new Expedition($db);
|
$sending = new Livraison($db);
|
||||||
$exp->initAsSpecimen();
|
$sending->initAsSpecimen();
|
||||||
//$exp->fetch_commande();
|
//$sending->fetch_commande();
|
||||||
|
|
||||||
// Charge le modele
|
// Charge le modele
|
||||||
$dir = DOL_DOCUMENT_ROOT . "/livraison/mods/pdf/";
|
$dir = DOL_DOCUMENT_ROOT . "/livraison/mods/pdf/";
|
||||||
@ -69,7 +69,7 @@ if ($_GET["action"] == 'specimen')
|
|||||||
|
|
||||||
$obj = new $classname($db);
|
$obj = new $classname($db);
|
||||||
|
|
||||||
if ($obj->write_file($exp,$langs) > 0)
|
if ($obj->write_file($sending,$langs) > 0)
|
||||||
{
|
{
|
||||||
header("Location: ".DOL_URL_ROOT."/document.php?modulepart=livraison&file=SPECIMEN.pdf");
|
header("Location: ".DOL_URL_ROOT."/document.php?modulepart=livraison&file=SPECIMEN.pdf");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user