Fix scrutinizer
This commit is contained in:
parent
23e2bb20d9
commit
9f2f8ca7e0
@ -285,6 +285,7 @@ class doc_generic_order_odt extends ModelePDFCommandes
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Recipient name
|
// Recipient name
|
||||||
|
$contactobject=null;
|
||||||
if (! empty($usecontact))
|
if (! empty($usecontact))
|
||||||
{
|
{
|
||||||
// On peut utiliser le nom de la societe du contact
|
// On peut utiliser le nom de la societe du contact
|
||||||
|
|||||||
@ -276,6 +276,7 @@ class doc_generic_contract_odt extends ModelePDFContract
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Recipient name
|
// Recipient name
|
||||||
|
$contactobject=null;
|
||||||
if (! empty($usecontact))
|
if (! empty($usecontact))
|
||||||
{
|
{
|
||||||
// On peut utiliser le nom de la societe du contact
|
// On peut utiliser le nom de la societe du contact
|
||||||
|
|||||||
@ -286,6 +286,7 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Recipient name
|
// Recipient name
|
||||||
|
$contactobject=null;
|
||||||
if (! empty($usecontact))
|
if (! empty($usecontact))
|
||||||
{
|
{
|
||||||
// On peut utiliser le nom de la societe du contact
|
// On peut utiliser le nom de la societe du contact
|
||||||
|
|||||||
@ -302,6 +302,7 @@ class doc_generic_product_odt extends ModelePDFProduct
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Recipient name
|
// Recipient name
|
||||||
|
$contactobject=null;
|
||||||
if (! empty($usecontact))
|
if (! empty($usecontact))
|
||||||
{
|
{
|
||||||
// On peut utiliser le nom de la societe du contact
|
// On peut utiliser le nom de la societe du contact
|
||||||
|
|||||||
@ -526,6 +526,7 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Recipient name
|
// Recipient name
|
||||||
|
$contactobject=null;
|
||||||
if (! empty($usecontact))
|
if (! empty($usecontact))
|
||||||
{
|
{
|
||||||
// if we have a PROJECTLEADER contact and we dont use it as recipient we store the contact object for later use
|
// if we have a PROJECTLEADER contact and we dont use it as recipient we store the contact object for later use
|
||||||
|
|||||||
@ -316,6 +316,7 @@ class doc_generic_proposal_odt extends ModelePDFPropales
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Recipient name
|
// Recipient name
|
||||||
|
$contactobject=null;
|
||||||
if (! empty($usecontact))
|
if (! empty($usecontact))
|
||||||
{
|
{
|
||||||
// On peut utiliser le nom de la societe du contact
|
// On peut utiliser le nom de la societe du contact
|
||||||
|
|||||||
@ -302,6 +302,7 @@ class doc_generic_stock_odt extends ModelePDFStock
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Recipient name
|
// Recipient name
|
||||||
|
$contactobject=null;
|
||||||
if (! empty($usecontact))
|
if (! empty($usecontact))
|
||||||
{
|
{
|
||||||
// On peut utiliser le nom de la societe du contact
|
// On peut utiliser le nom de la societe du contact
|
||||||
|
|||||||
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2018 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
|
||||||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -19,53 +16,19 @@
|
|||||||
* or see http://www.gnu.org/
|
* or see http://www.gnu.org/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class ModeleStock
|
* \file htdocs/core/modules/stock/modules_movement.php
|
||||||
* \brief Parent class for warehouse generators
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/core/modules/stock/modules_stock.php
|
|
||||||
* \ingroup stock
|
* \ingroup stock
|
||||||
* \brief File with parent class for generating warehouse to PDF and File of class to manage warehouse mouvement
|
* \brief File with parent class for generating warehouse to PDF and File of class to manage warehouse movement
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';
|
||||||
|
|
||||||
/**
|
|
||||||
* Parent class to manage warehouse document templates
|
|
||||||
*/
|
|
||||||
abstract class ModelePDFStock extends CommonDocGenerator
|
|
||||||
{
|
|
||||||
var $error='';
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return list of active generation modules
|
|
||||||
*
|
|
||||||
* @param DoliDB $db Database handler
|
|
||||||
* @param integer $maxfilenamelength Max length of value to show
|
|
||||||
* @return array List of templates
|
|
||||||
*/
|
|
||||||
static function liste_modeles($db,$maxfilenamelength=0)
|
|
||||||
{
|
|
||||||
global $conf;
|
|
||||||
|
|
||||||
$type='stock';
|
|
||||||
$liste=array();
|
|
||||||
|
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
$liste=getListOfModels($db,$type,$maxfilenamelength);
|
|
||||||
return $liste;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parent class to manage warehouse mouvement document templates
|
* Parent class to manage warehouse mouvement document templates
|
||||||
*/
|
*/
|
||||||
abstract class ModelePDFMouvement extends CommonDocGenerator
|
abstract class ModelePDFMovement extends CommonDocGenerator
|
||||||
{
|
{
|
||||||
var $error='';
|
var $error='';
|
||||||
|
|
||||||
@ -25,6 +25,7 @@ abstract class ModelePDFStock extends CommonDocGenerator
|
|||||||
{
|
{
|
||||||
var $error='';
|
var $error='';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return list of active generation modules
|
* Return list of active generation modules
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user