Save the name of generated file as the main doc when generating a doc with this template
This commit is contained in:
parent
7c13428456
commit
e638c238c6
@ -52,6 +52,11 @@ class pdf_rouget extends ModelePdfExpedition
|
|||||||
*/
|
*/
|
||||||
public $description;
|
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
|
* @var string document type
|
||||||
*/
|
*/
|
||||||
@ -123,6 +128,7 @@ class pdf_rouget extends ModelePdfExpedition
|
|||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->name = "rouget";
|
$this->name = "rouget";
|
||||||
$this->description = $langs->trans("DocumentModelStandardPDF");
|
$this->description = $langs->trans("DocumentModelStandardPDF");
|
||||||
|
$this->update_main_doc_field = 1; // Save the name of generated file as the main doc when generating a doc with this template
|
||||||
|
|
||||||
$this->type = 'pdf';
|
$this->type = 'pdf';
|
||||||
$formatarray = pdf_getFormat();
|
$formatarray = pdf_getFormat();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user