Save the name of generated file as the main doc when generating a doc with this template and missing declarations
This commit is contained in:
parent
5b5ea075e7
commit
47ca631193
@ -37,6 +37,31 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|||||||
|
|
||||||
class pdf_timespent extends ModelePDFProjects
|
class pdf_timespent extends ModelePDFProjects
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var DoliDb Database handler
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string model name
|
||||||
|
*/
|
||||||
|
public $name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string model description (short text)
|
||||||
|
*/
|
||||||
|
public $description;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int Save the name of generated file as the main doc when generating a doc with this template
|
||||||
|
*/
|
||||||
|
public $update_main_doc_field;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string document type
|
||||||
|
*/
|
||||||
|
public $type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array Minimum version of PHP required by module.
|
* @var array Minimum version of PHP required by module.
|
||||||
* e.g.: PHP ≥ 5.6 = array(5, 6)
|
* e.g.: PHP ≥ 5.6 = array(5, 6)
|
||||||
@ -49,6 +74,41 @@ class pdf_timespent extends ModelePDFProjects
|
|||||||
*/
|
*/
|
||||||
public $version = 'dolibarr';
|
public $version = 'dolibarr';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int page_largeur
|
||||||
|
*/
|
||||||
|
public $page_largeur;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int page_hauteur
|
||||||
|
*/
|
||||||
|
public $page_hauteur;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array format
|
||||||
|
*/
|
||||||
|
public $format;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int marge_gauche
|
||||||
|
*/
|
||||||
|
public $marge_gauche;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int marge_droite
|
||||||
|
*/
|
||||||
|
public $marge_droite;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int marge_haute
|
||||||
|
*/
|
||||||
|
public $marge_haute;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int marge_basse
|
||||||
|
*/
|
||||||
|
public $marge_basse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Issuer
|
* Issuer
|
||||||
* @var Societe Object that emits
|
* @var Societe Object that emits
|
||||||
@ -70,6 +130,7 @@ class pdf_timespent extends ModelePDFProjects
|
|||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->name = "timespent";
|
$this->name = "timespent";
|
||||||
$this->description = $langs->trans("DocumentModelTimeSpent");
|
$this->description = $langs->trans("DocumentModelTimeSpent");
|
||||||
|
$this->update_main_doc_field = 1; // Save the name of generated file as the main doc when generating a doc with this template
|
||||||
|
|
||||||
// Page size for A4 format
|
// Page size for A4 format
|
||||||
$this->type = 'pdf';
|
$this->type = 'pdf';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user