From 98fc23b80dbc4935ff7a6efeb49fd3876b96f029 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 29 Nov 2003 08:18:23 +0000 Subject: [PATCH] also set default latex template for late bill templates --- FS/FS/part_bill_event.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/FS/FS/part_bill_event.pm b/FS/FS/part_bill_event.pm index 9e5d82161..86f929424 100644 --- a/FS/FS/part_bill_event.pm +++ b/FS/FS/part_bill_event.pm @@ -160,6 +160,12 @@ sub check { join("\n", $conf->config('invoice_template') ) ); } + unless ( $conf->exists("invoice_latex_$name") ) { + $conf->set( + "invoice_latex_$name" => + join("\n", $conf->config('invoice_latex') ) + ); + } } $self->SUPER::check; -- 2.11.0