BankTransaction: Dialogbuchungsvorlagen sortiert nach Name
authorWerner Hahn <wh@futureworldsearch.net>
Fri, 15 Oct 2021 06:04:40 +0000 (08:04 +0200)
committerWerner Hahn <wh@futureworldsearch.net>
Fri, 15 Oct 2021 06:04:40 +0000 (08:04 +0200)
SL/Controller/BankTransaction.pm

index d340216..3cd77b5 100644 (file)
@@ -280,6 +280,7 @@ sub action_create_invoice {
     query        => [ template_type => 'gl_transaction',
                       chart_id      => SL::DB::Manager::BankAccount->find_by(id => $self->transaction->local_bank_account_id)->chart_id,
                     ],
+    sort_by      => [ qw(template_name) ],
     with_objects => [ qw(employee record_template_items) ],
   );