From: Jan Büren Date: Mon, 14 Feb 2022 09:39:33 +0000 (+0100) Subject: SelfTest: ar_amount nicht bei Anzahlungs- oder Schlußrechnungen prüfen X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~217^2~3 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b92770c71959c10c35321f585ff670fd567bcb66;p=kivitendo-erp.git SelfTest: ar_amount nicht bei Anzahlungs- oder Schlußrechnungen prüfen --- diff --git a/SL/BackgroundJob/SelfTest/Transactions.pm b/SL/BackgroundJob/SelfTest/Transactions.pm index 9eda7222c..ab145cece 100644 --- a/SL/BackgroundJob/SelfTest/Transactions.pm +++ b/SL/BackgroundJob/SelfTest/Transactions.pm @@ -472,6 +472,7 @@ sub check_ar_acc_trans_amount { from acc_trans ac left join ar on (ac.trans_id = ar.id) WHERE ac.chart_link like 'AR_amount%' AND ac.transdate >= ? AND ac.transdate <= ? + AND ar.type = 'invoice' group by invnumber,netamount having sum(ac.amount) <> ar.netamount|; my $ar_amount_not_ac_amount = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);