Save the name of generated file as the main doc when generating a doc with this template
This commit is contained in:
parent
6b0bb90ab2
commit
f80da203e0
@ -56,6 +56,11 @@ class pdf_cornas extends ModelePDFSuppliersOrders
|
||||
*/
|
||||
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
|
||||
*/
|
||||
@ -130,6 +135,7 @@ class pdf_cornas extends ModelePDFSuppliersOrders
|
||||
$this->db = $db;
|
||||
$this->name = "cornas";
|
||||
$this->description = $langs->trans('SuppliersCommandModel');
|
||||
$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
|
||||
$this->type = 'pdf';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user