projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SL::Controller::Customer entfernt
[kivitendo-erp.git]
/
SL
/
CT.pm
diff --git
a/SL/CT.pm
b/SL/CT.pm
index
66b3e25
..
44707f9
100644
(file)
--- a/
SL/CT.pm
+++ b/
SL/CT.pm
@@
-42,6
+42,7
@@
use Data::Dumper;
use SL::Common;
use SL::CVar;
use SL::DBUtils;
use SL::Common;
use SL::CVar;
use SL::DBUtils;
+use SL::DB::Default;
use SL::FU;
use SL::Notes;
use SL::TransNumber;
use SL::FU;
use SL::Notes;
use SL::TransNumber;
@@
-1080,6
+1081,10
@@
sub parse_excel_file {
my ($self, $myconfig, $form) = @_;
my $locale = $main::locale;
my ($self, $myconfig, $form) = @_;
my $locale = $main::locale;
+ my $defaults = SL::DB::Default->get;
+ $form->error($::locale->text('No print templates have been created for this client yet. Please do so in the client configuration.')) if !$defaults->templates;
+ $form->{templates} = $defaults->templates;
+
$form->{formname} = 'sales_quotation';
$form->{type} = 'sales_quotation';
$form->{format} = 'excel';
$form->{formname} = 'sales_quotation';
$form->{type} = 'sales_quotation';
$form->{format} = 'excel';
@@
-1122,8
+1127,6
@@
sub parse_excel_file {
$form->{notes} =~ s/^\s+//g;
$form->{notes} =~ s/^\s+//g;
- $form->{templates} = $myconfig->{templates};
-
delete $form->{printer_command};
$form->get_employee_info($myconfig);
delete $form->{printer_command};
$form->get_employee_info($myconfig);