Document: generate : Document_type standard

Signed-off-by: sparkyx <danydb@noalyss.eu>
This commit is contained in:
sparkyx 2025-11-24 13:16:20 +01:00
parent 69428c639c
commit 736fe561ad

View file

@ -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']]);