X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/e503a1d422ed53d99d68db3ebbc6d4dfe11dea7f..00177fae5986f1de25515c7103d10fc36a38cefd:/bin/mozilla/io.pl diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index e889f2aef..89e40d0e5 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -172,12 +172,8 @@ sub display_row { ); # serialnr is important for delivery_orders if ($form->{type} eq 'sales_delivery_order') { - for my $i (1 .. $form->{rowcount} - 1) { - next unless $form->{"has_sernumber_$i"}; - splice @row2_sort, 0, 1; - splice @header_sort, 4, 0, "serialnr"; - last; - } + splice @row2_sort, 0, 1; + splice @header_sort, 4, 0, "serialnr"; } my %column_def = ( @@ -1396,6 +1392,8 @@ sub print_form { $form->get_shipto(\%myconfig); } + $form->set_addition_billing_address_print_variables; + $form->{notes} =~ s/^\s+//g; delete $form->{printer_command}; @@ -1574,6 +1572,10 @@ sub print_form { today => DateTime->today, }; + if ($defaults->print_interpolate_variables_in_positions) { + $form->substitute_placeholders_in_template_arrays({ field => 'description', type => 'text' }, { field => 'longdescription', type => 'html' }); + } + $form->parse_template(\%myconfig); $form->{callback} = "";