Revision 6aa3c3ea
Von Tamino Steinert vor 11 Monaten hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
120 | 120 |
"The ZUGFeRD/Factur-X invoice '#1' has been loaded.", $file_name)); |
121 | 121 |
} |
122 | 122 |
|
123 |
my $template_ap = SL::DB::Manager::RecordTemplate->get_first(where => [vendor_id => $::form->{form_defaults}->{vendor_id}]); |
|
123 |
my $template_ap; |
|
124 |
$template_ap ||= SL::DB::RecordTemplate->new(id => $::form->{record_template_id})->load() |
|
125 |
if $::form->{record_template_id}; |
|
126 |
$template_ap ||= SL::DB::Manager::RecordTemplate->get_first(where => [vendor_id => $::form->{form_defaults}->{vendor_id}]) |
|
127 |
if $::form->{form_defaults}->{vendor_id}; |
|
124 | 128 |
if ($template_ap) { |
125 | 129 |
$::form->{id} = $template_ap->id; |
126 | 130 |
# set default values for items |
Auch abrufbar als: Unified diff
EmailJournal: ZUGFeRD-Import mit ausgewähter Buchungsvorlage