]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/Order.pm
FlattenToForm: Zahlungsbedingungen des Kunden/Lieferanten nicht kopieren
[mfinanz.git] / SL / Controller / Order.pm
index 8ed5b3326c43fb03dc396357eb04df4d450aec64..78b3b096b73532dad41c62f6cc03c4a3409ed6bc 100644 (file)
@@ -942,8 +942,6 @@ sub _create_pdf {
   $print_form->{language_id} = $params->{language}->id            if $print_form->{language};
 
   $order->flatten_to_form($print_form, format_amounts => 1);
-  # flatten_to_form sets payment_terms from customer/vendor - we do not want that here
-  delete $print_form->{payment_terms} if !$print_form->{payment_id};
 
   # search for the template
   my ($template_file, @template_files) = SL::Helper::CreatePDF->find_template(