X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ac24d564d4fa4620782f0d5742853c52746f3b95..00177fae5986f1de25515c7103d10fc36a38cefd:/bin/mozilla/io.pl diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index fda1fd6fe..89e40d0e5 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -170,6 +170,12 @@ sub display_row { my @row2_sort = qw( serialnr projectnr reqdate subtotal marge listprice lastcost onhand ); + # serialnr is important for delivery_orders + if ($form->{type} eq 'sales_delivery_order') { + splice @row2_sort, 0, 1; + splice @header_sort, 4, 0, "serialnr"; + } + my %column_def = ( runningnumber => { width => 5, value => $locale->text('No.'), display => 1, }, partnumber => { width => 8, value => $locale->text('Number'), display => 1, }, @@ -1386,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}; @@ -1564,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} = "";