X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fio.pl;h=19f0c9a6d1451e60dde8b7226c202e5119a3647f;hb=58eece5d3ea3c91caa802ad5f3a8fc57deca0013;hp=5bd5a25a69997b771619d282c48bace3d00bea78;hpb=e80aa4c85d2e548d1c4e11bdf598e42b1f367a7f;p=kivitendo-erp.git diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 5bd5a25a6..19f0c9a6d 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -393,7 +393,7 @@ sub display_row { '-labels' => \%projectnumber_labels, '-default' => $form->{"project_id_$i"} )); - $column_data{reqdate} = qq||; + $column_data{reqdate} = qq||; $column_data{subtotal} = sprintf qq||, $form->{"subtotal_$i"} ? 'checked' : ''; # begin marge calculations @@ -1670,6 +1670,7 @@ sub _update_part_information { } sub _update_ship { + return unless $::form->{id}; my $helper = SL::Helper::ShippedQty->new->calculate($::form->{id}); for my $i (1..$::form->{rowcount}) { @@ -1968,14 +1969,19 @@ sub show_sales_purchase_email_dialog { my $email = ''; if ($::form->{cp_id}) { $email = SL::DB::Contact->load_cached($::form->{cp_id})->cp_email; - } elsif ($::form->{vc} && $::form->{vc_id}) { + } + + if (!$email && $::form->{vc} && $::form->{vc_id}) { $email = SL::DB::Customer->load_cached($::form->{vc_id})->email if 'customer' eq $::form->{vc}; $email = SL::DB::Vendor ->load_cached($::form->{vc_id})->email if 'vendor' eq $::form->{vc}; } + $email = '' if $::form->{type} eq 'purchase_delivery_order'; + my $email_form = { to => $email, subject => $::form->generate_email_subject, + message => $::form->generate_email_body, attachment_filename => $::form->generate_attachment_filename, };