use SL::Controller::Helper::GetModels;
use SL::Controller::Helper::ReportGenerator;
use SL::CT;
+use SL::DB::Employee;
+use SL::DB::Language;
use SL::DB::Letter;
use SL::DB::LetterDraft;
-use SL::DB::Employee;
+use SL::DB::Printer;
use SL::Helper::Flash qw(flash flash_later);
use SL::Helper::CreatePDF;
use SL::Helper::PrintOptions;
$::request->layout->add_javascripts('edit_part_window.js');
$::form->{language_id} ||= $params{language_id};
+ $::form->{languages} ||= SL::DB::Manager::Language->get_all_sorted;
$::form->{printers} = SL::DB::Manager::Printer->get_all_sorted;
$self->render('letter/edit',
($form->{type} =~ /_delivery_order$/) ? (
opthash($form->{type}, $form->{PD}{$form->{type}}, $locale->text('Delivery Order')),
opthash('pick_list', $form->{PD}{pick_list}, $locale->text('Pick List')),
+ ) : undef,
+ ($form->{type} =~ /^letter$/) ? (
+ opthash('letter', $form->{PD}{letter}, $locale->text('Letter')),
) : undef;
push @SENDMODE,
my %dont_display_groupitems = (
'dunning' => 1,
- 'letter' => 1,
);
my %template_vars = (