Merge pull request #16227 from grandoc/new_branch_08_02_2021
Save the name of generated file as the main doc when generating a doc…
This commit is contained in:
commit
3b0268424b
@ -133,6 +133,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
|
|||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->name = "canelle";
|
$this->name = "canelle";
|
||||||
$this->description = $langs->trans('SuppliersInvoiceModel');
|
$this->description = $langs->trans('SuppliersInvoiceModel');
|
||||||
|
$this->update_main_doc_field = 1; // Save the name of generated file as the main doc when generating a doc with this template
|
||||||
|
|
||||||
// Page dimensions
|
// Page dimensions
|
||||||
$this->type = 'pdf';
|
$this->type = 'pdf';
|
||||||
|
|||||||
@ -56,6 +56,11 @@ class pdf_cornas extends ModelePDFSuppliersOrders
|
|||||||
*/
|
*/
|
||||||
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
|
||||||
*/
|
*/
|
||||||
@ -130,6 +135,7 @@ class pdf_cornas extends ModelePDFSuppliersOrders
|
|||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->name = "cornas";
|
$this->name = "cornas";
|
||||||
$this->description = $langs->trans('SuppliersCommandModel');
|
$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
|
// Page size for A4 format
|
||||||
$this->type = 'pdf';
|
$this->type = 'pdf';
|
||||||
|
|||||||
@ -56,6 +56,11 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
|
|||||||
*/
|
*/
|
||||||
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
|
||||||
*/
|
*/
|
||||||
@ -130,6 +135,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
|
|||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->name = "muscadet";
|
$this->name = "muscadet";
|
||||||
$this->description = $langs->trans('SuppliersCommandModelMuscadet');
|
$this->description = $langs->trans('SuppliersCommandModelMuscadet');
|
||||||
|
$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';
|
||||||
|
|||||||
@ -53,6 +53,11 @@ class pdf_standard extends ModelePDFSuppliersPayments
|
|||||||
*/
|
*/
|
||||||
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
|
||||||
*/
|
*/
|
||||||
@ -127,6 +132,7 @@ class pdf_standard extends ModelePDFSuppliersPayments
|
|||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->name = "standard";
|
$this->name = "standard";
|
||||||
$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
|
||||||
|
|
||||||
// Page size for A4 format
|
// Page size for A4 format
|
||||||
$this->type = 'pdf';
|
$this->type = 'pdf';
|
||||||
|
|||||||
@ -53,6 +53,11 @@ class pdf_aurore extends ModelePDFSupplierProposal
|
|||||||
*/
|
*/
|
||||||
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
|
||||||
*/
|
*/
|
||||||
@ -127,6 +132,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
|
|||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->name = "aurore";
|
$this->name = "aurore";
|
||||||
$this->description = $langs->trans('DocModelAuroreDescription');
|
$this->description = $langs->trans('DocModelAuroreDescription');
|
||||||
|
$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