X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/31d15c5a5db556dccc20159922c3c509166911b8..ea13b69d6d3a70c5432ae6b6d29a0a0531e51da9:/bin/mozilla/ap.pl diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index afc2ab558..8558f3841 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -564,7 +564,7 @@ sub form_header { print $form->parse_html_template('ap/form_header', { today => DateTime->today, currencies => SL::DB::Manager::Currency->get_all_sorted, - payment_terms => SL::DB::Manager::PaymentTerm->get_all_sorted(query => [ or => [ obsolete => 0, id => $::form->{payment_id}*1 ]]), + payment_terms => SL::DB::Manager::PaymentTerm->get_all_sorted(query => [ or => [ obsolete => 0, id => $form->{invoice_obj}->{payment_id}*1 ]]), }); $main::lxdebug->leave_sub();