X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fio.pl;h=b4ae880d158ff51b8e7f0c85890f3e69469b1c49;hb=e7e7b7c6c69658cd3bb4c87bf8f907fd78a83104;hp=c799d0c382b3f6cdb776ab355678526ed6b1a67d;hpb=5bc5af9f93a0ed3edfa6fa9aba7aa80cab182ae9;p=kivitendo-erp.git diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index c799d0c38..b4ae880d1 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -53,6 +53,7 @@ use SL::IC; use SL::IO; use SL::File; use SL::PriceSource; +use SL::Presenter::Part; use SL::DB::Contact; use SL::DB::Customer; @@ -308,8 +309,8 @@ sub display_row { $column_data{partnumber} = $cgi->textfield(-name => "partnumber_$i", -id => "partnumber_$i", -size => 12, -value => $form->{"partnumber_$i"}); - $column_data{type_and_classific} = $::request->presenter->type_abbreviation($form->{"part_type_$i"}). - $::request->presenter->classification_abbreviation($form->{"classification_id_$i"}) if $form->{"id_$i"}; + $column_data{type_and_classific} = SL::Presenter::Part::type_abbreviation($form->{"part_type_$i"}). + SL::Presenter::Part::classification_abbreviation($form->{"classification_id_$i"}) if $form->{"id_$i"}; $column_data{description} = (($rows > 1) # if description is too large, use a textbox instead ? $cgi->textarea( -name => "description_$i", -id => "description_$i", -default => $form->{"description_$i"}, -rows => $rows, -columns => 30) : $cgi->textfield(-name => "description_$i", -id => "description_$i", -value => $form->{"description_$i"}, -size => 30)) @@ -317,7 +318,7 @@ sub display_row { my $qty_dec = ($form->{"qty_$i"} =~ /\.(\d+)/) ? length $1 : 2; - $column_data{qty} = $cgi->textfield(-name => "qty_$i", -size => 5, -"data-validate" => "number", -class => "numeric", -value => $form->format_amount(\%myconfig, $form->{"qty_$i"}, $qty_dec)); + $column_data{qty} = $cgi->textfield(-name => "qty_$i", -size => 5, -class => "numeric", -value => $form->format_amount(\%myconfig, $form->{"qty_$i"}, $qty_dec)); $column_data{qty} .= $cgi->button(-onclick => "calculate_qty_selection_window('qty_$i','alu_$i', 'formel_$i', $i)", -value => $locale->text('*/')) . $cgi->hidden(-name => "formel_$i", -value => $form->{"formel_$i"}) . $cgi->hidden("-name" => "alu_$i", "-value" => $form->{"alu_$i"}) if $form->{"formel_$i"}; @@ -377,7 +378,7 @@ sub display_row { my $edit_discounts = $main::auth->assert('edit_prices', 1) && !$::form->{"active_discount_source_$i"}; $column_data{sellprice} = (!$edit_prices) ? $cgi->hidden( -name => "sellprice_$i", -id => "sellprice_$i", -value => $sellprice_value) . $sellprice_value - : $cgi->textfield(-name => "sellprice_$i", -id => "sellprice_$i", -size => 10, -"data-validate" => "number", -class => "numeric", -value => $sellprice_value); + : $cgi->textfield(-name => "sellprice_$i", -id => "sellprice_$i", -size => 10, -class => "numeric", -value => $sellprice_value); $column_data{discount} = (!$edit_discounts) ? $cgi->hidden( -name => "discount_$i", -id => "discount_$i", -value => $discount_value) . $discount_value . ' %' : $cgi->textfield(-name => "discount_$i", -id => "discount_$i", -size => 3, -"data-validate" => "number", -class => "numeric", -value => $discount_value); @@ -1938,7 +1939,7 @@ sub setup_sales_purchase_print_options { $print_form->{printers} = SL::DB::Manager::Printer->get_all_sorted; $print_form->{languages} = SL::DB::Manager::Language->get_all_sorted; - $print_form->{$_} = $::form->{$_} for qw(type media language_id printer_id); + $print_form->{$_} = $::form->{$_} for qw(type media language_id printer_id storno); return SL::Helper::PrintOptions->get_print_options( form => $print_form, @@ -1999,6 +2000,7 @@ sub show_sales_purchase_email_dialog { subject => $::form->generate_email_subject, message => $::form->generate_email_body, attachment_filename => $::form->generate_attachment_filename, + js_send_function => 'kivi.SalesPurchase.send_email()', }; my %files = _get_files_for_email_dialog();