From 736fe561ad123075c5d998874c3c342c82445b2b Mon Sep 17 00:00:00 2001 From: sparkyx Date: Mon, 24 Nov 2025 13:16:20 +0100 Subject: [PATCH] Document: generate : Document_type standard Signed-off-by: sparkyx --- include/class/document.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/class/document.class.php b/include/class/document.class.php index 6c9e7bb47..8510ff06e 100644 --- a/include/class/document.class.php +++ b/include/class/document.class.php @@ -1750,6 +1750,7 @@ class Document join document_type dt on (ag_type=dt.dt_id) where ag_id=$1", array($p_array["ag_id"])); } elseif (isset($p_array['gen_doc'])) { + if ( $p_array['gen_doc'] == -2) return _("Facture standard"); $ret = $this->db->get_value(" select md_name from public.document_modele where md_id=$1", [$p_array['gen_doc']]);