Fix: Specimen generation fails
This commit is contained in:
parent
0a8ae2934d
commit
4786ab9268
@ -95,7 +95,7 @@ if ($action == 'specimen') // For orders
|
|||||||
{
|
{
|
||||||
require_once($file);
|
require_once($file);
|
||||||
|
|
||||||
$module = new $classname($db);
|
$module = new $classname($db,$commande);
|
||||||
|
|
||||||
if ($module->write_file($commande,$langs) > 0)
|
if ($module->write_file($commande,$langs) > 0)
|
||||||
{
|
{
|
||||||
@ -141,7 +141,7 @@ if ($action == 'specimenfacture') // For invoices
|
|||||||
{
|
{
|
||||||
require_once($file);
|
require_once($file);
|
||||||
|
|
||||||
$module = new $classname($db);
|
$module = new $classname($db,$facture);
|
||||||
|
|
||||||
if ($module->write_file($facture,$langs) > 0)
|
if ($module->write_file($facture,$langs) > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user