From: Jan Büren Date: Tue, 10 May 2016 11:20:09 +0000 (+0200) Subject: Kontoauszug verbuchen, Startdatum der Verbuchung greater/equal X-Git-Tag: release-3.4.1~154 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5d2c7ae29c701553aa3ab2cbbcf04b4dbaae5086;p=kivitendo-erp.git Kontoauszug verbuchen, Startdatum der Verbuchung greater/equal Wie bei fromdate und auch sonst überall im Programm, entsprechend das Startdatum der Kontoverbuchung noch als gültigen Wert mitnehmen. --- diff --git a/SL/Controller/BankTransaction.pm b/SL/Controller/BankTransaction.pm index 5e09aacc4..d018930fc 100644 --- a/SL/Controller/BankTransaction.pm +++ b/SL/Controller/BankTransaction.pm @@ -79,9 +79,10 @@ sub action_list { push @where, (transdate => { lt => $todate }) if ($todate); my $bank_account = SL::DB::Manager::BankAccount->find_by( id => $::form->{filter}{bank_account} ); # bank_transactions no younger than starting date, + # including starting date (same search behaviour as fromdate) # but OPEN invoices to be matched may be from before if ( $bank_account->reconciliation_starting_date ) { - push @where, (transdate => { gt => $bank_account->reconciliation_starting_date }); + push @where, (transdate => { ge => $bank_account->reconciliation_starting_date }); }; my $bank_transactions = SL::DB::Manager::BankTransaction->get_all(where => [ amount => {ne => \'invoice_amount'},