From 6b0bb90ab212b79002e12baff0fd165ce60eda03 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Mon, 8 Feb 2021 19:40:27 +0100 Subject: [PATCH 1/5] Save the name of generated file as the main doc when generating a doc with this template --- htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php b/htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php index 7a3ecf88e19..9ac43fd1625 100644 --- a/htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php +++ b/htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php @@ -133,6 +133,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices $this->db = $db; $this->name = "canelle"; $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 $this->type = 'pdf'; From f80da203e0c9f1da290f0798ac95b5ee12589852 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Mon, 8 Feb 2021 19:43:36 +0100 Subject: [PATCH 2/5] Save the name of generated file as the main doc when generating a doc with this template --- .../core/modules/supplier_order/doc/pdf_cornas.modules.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php b/htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php index 22bc80e161d..275b4672109 100644 --- a/htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php +++ b/htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php @@ -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'; From d9eb727c0ff0fafd3bcf6c42f0f167f25082652a Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Mon, 8 Feb 2021 19:44:46 +0100 Subject: [PATCH 3/5] Save the name of generated file as the main doc when generating a doc with this template --- .../modules/supplier_order/doc/pdf_muscadet.modules.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php b/htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php index b48cb60df45..2094eab8c3a 100644 --- a/htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php +++ b/htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php @@ -56,6 +56,11 @@ class pdf_muscadet 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_muscadet extends ModelePDFSuppliersOrders $this->db = $db; $this->name = "muscadet"; $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 $this->type = 'pdf'; From 62d6666927c9f4c0cf2749f12cea86286d3b0e38 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Mon, 8 Feb 2021 19:46:09 +0100 Subject: [PATCH 4/5] Save the name of generated file as the main doc when generating a doc with this template --- .../modules/supplier_payment/doc/pdf_standard.modules.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/core/modules/supplier_payment/doc/pdf_standard.modules.php b/htdocs/core/modules/supplier_payment/doc/pdf_standard.modules.php index bcb90df2bb1..0dbe2d84614 100644 --- a/htdocs/core/modules/supplier_payment/doc/pdf_standard.modules.php +++ b/htdocs/core/modules/supplier_payment/doc/pdf_standard.modules.php @@ -53,6 +53,11 @@ class pdf_standard extends ModelePDFSuppliersPayments */ 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 */ @@ -127,6 +132,7 @@ class pdf_standard extends ModelePDFSuppliersPayments $this->db = $db; $this->name = "standard"; $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 $this->type = 'pdf'; From f27dd77cb638907a34c30cfc30800baf5441d284 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Mon, 8 Feb 2021 19:47:31 +0100 Subject: [PATCH 5/5] Save the name of generated file as the main doc when generating a doc with this template --- .../modules/supplier_proposal/doc/pdf_aurore.modules.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php b/htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php index d8307226e41..3d3990c06b4 100644 --- a/htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php +++ b/htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php @@ -53,6 +53,11 @@ class pdf_aurore extends ModelePDFSupplierProposal */ 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 */ @@ -127,6 +132,7 @@ class pdf_aurore extends ModelePDFSupplierProposal $this->db = $db; $this->name = "aurore"; $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 $this->type = 'pdf';