Revision 452f0d6a
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
use SL::Presenter::Tag qw(select_tag hidden_tag div_tag);
|
||
use SL::Locale::String qw(t8);
|
||
use SL::SessionFile::Random;
|
||
use SL::IMAPClient;
|
||
use SL::PriceSource;
|
||
use SL::Webdav;
|
||
use SL::File;
|
||
... | ... | |
$self->order->add_phone_notes($phone_note) if $is_new;
|
||
}
|
||
|
||
my $is_new = !$self->order->id;
|
||
$db->with_transaction(sub {
|
||
my $validity_token;
|
||
if (!$self->order->id) {
|
||
... | ... | |
1;
|
||
}) || push(@{$errors}, $db->error);
|
||
|
||
if ($is_new && $self->order->is_sales) {
|
||
my $imap_client = SL::Mail::IMAP::Client->new();
|
||
if ($imap_client) {
|
||
$imap_client->create_folder_for_record($self->order);
|
||
}
|
||
}
|
||
|
||
|
||
return $errors;
|
||
}
|
||
|
Auch abrufbar als: Unified diff
Order: Erstelle Emailordner für neue VK-Angebote und VK-Aufträge