X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fis.pl;h=a1af7b19bbdbded87b2b159f7c70f8c753f0afdb;hb=ff0586637d90ef8f0b4b725e476ad7ccbeb32570;hp=cf3ac5768eabe14e835e3d60b138137926468a7f;hpb=4bf8886f5004121c1fb31cbb93907dee44005c57;p=kivitendo-erp.git diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index cf3ac5768..a1af7b19b 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -154,6 +154,7 @@ sub invoice_links { taxincluded currency cp_id intnotes id shipto_id delivery_term_id)); + $form->{shipto} = 1 if $editing || $form->{convert_from_oe_ids} || $form->{convert_from_do_ids}; IS->get_customer(\%myconfig, \%$form); #quote all_customer Bug 133 @@ -382,6 +383,8 @@ sub form_header { ), @custom_hiddens, map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts}]; + $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase)); + $form->header(); print $form->parse_html_template("is/form_header", \%TMPL_VAR); @@ -818,6 +821,7 @@ sub use_as_new { $form->{rowcount}--; $form->{invdate} = $form->current_date(\%myconfig); $form->{duedate} = $form->get_duedate(\%myconfig, $form->{invdate}) || $form->{invdate}; + $form->{employee_id} = SL::DB::Manager::Employee->current->id; # remember pricegroups for "use as new" IS->get_pricegroups_for_parts(\%myconfig, \%$form); @@ -1022,6 +1026,10 @@ sub yes { $main::lxdebug->leave_sub(); } +sub post_and_e_mail { + e_mail(); +}; + sub e_mail { $main::lxdebug->enter_sub();