Revision 2e66dde5
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/CT.pm | ||
---|---|---|
42 | 42 |
use SL::Common; |
43 | 43 |
use SL::CVar; |
44 | 44 |
use SL::DBUtils; |
45 |
use SL::DB::Default; |
|
45 | 46 |
use SL::FU; |
46 | 47 |
use SL::Notes; |
47 | 48 |
use SL::TransNumber; |
... | ... | |
1080 | 1081 |
my ($self, $myconfig, $form) = @_; |
1081 | 1082 |
my $locale = $main::locale; |
1082 | 1083 |
|
1084 |
my $defaults = SL::DB::Default->get; |
|
1085 |
$form->error($::locale->text('No print templates have been created for this client yet. Please do so in the client configuration.')) if !$defaults->templates; |
|
1086 |
$form->{templates} = $defaults->templates; |
|
1087 |
|
|
1083 | 1088 |
$form->{formname} = 'sales_quotation'; |
1084 | 1089 |
$form->{type} = 'sales_quotation'; |
1085 | 1090 |
$form->{format} = 'excel'; |
... | ... | |
1122 | 1127 |
|
1123 | 1128 |
$form->{notes} =~ s/^\s+//g; |
1124 | 1129 |
|
1125 |
$form->{templates} = $myconfig->{templates}; |
|
1126 |
|
|
1127 | 1130 |
delete $form->{printer_command}; |
1128 | 1131 |
|
1129 | 1132 |
$form->get_employee_info($myconfig); |
Auch abrufbar als: Unified diff
'templates' nicht aus %::myconfig, sondern aus Defaults-Tabelle holen