]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Controller/BankTransaction.pm
Lohnbuchhaltungsimport: Leere Werte für Abteilungen abfangen
[kivitendo-erp.git] / SL / Controller / BankTransaction.pm
index d3402169279925e9804ef5bad542cddd4b55e9f6..7f317403178d15dfaf62c8c9a36749851e942f54 100644 (file)
@@ -274,12 +274,14 @@ sub action_create_invoice {
 
   my $templates_ap = SL::DB::Manager::RecordTemplate->get_all(
     where        => [ template_type => 'ap_transaction' ],
+    sort_by      => [ qw(template_name) ],
     with_objects => [ qw(employee vendor) ],
   );
   my $templates_gl = SL::DB::Manager::RecordTemplate->get_all(
     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) ],
   );