projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5eb991f
)
SelfTests: Verwaiste invoice-Einträge auch auf Zeitraum beschränken
author
Jan Büren
<jan@kivitendo-premium.de>
Fri, 29 Apr 2016 10:30:26 +0000
(12:30 +0200)
committer
Jan Büren
<jan@kivitendo-premium.de>
Fri, 29 Apr 2016 10:30:26 +0000
(12:30 +0200)
SL/BackgroundJob/SelfTest/Transactions.pm
patch
|
blob
|
history
diff --git
a/SL/BackgroundJob/SelfTest/Transactions.pm
b/SL/BackgroundJob/SelfTest/Transactions.pm
index
667213d
..
eedbbee
100644
(file)
--- a/
SL/BackgroundJob/SelfTest/Transactions.pm
+++ b/
SL/BackgroundJob/SelfTest/Transactions.pm
@@
-136,9
+136,15
@@
sub check_verwaiste_invoice_eintraege {
my ($self) = @_;
my $query = qq|
select * from invoice i
my ($self) = @_;
my $query = qq|
select * from invoice i
- where trans_id not in (select id from ar union select id from ap order by id) |;
+ where trans_id not in (select id from ar WHERE ar.transdate >=? AND ar.transdate <=?
+ UNION
+ select id from ap WHERE ap.transdate >= ? and ap.transdate <= ?)
+ AND i.transdate >=? AND i.transdate <=?|;
+
+ my $verwaiste_invoice = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate,
+ $self->fromdate, $self->todate, $self->fromdate, $self->todate);
+
- my $verwaiste_invoice = selectall_hashref_query($::form, $self->dbh, $query);
if (@$verwaiste_invoice) {
$self->tester->ok(0, "Es gibt verwaiste invoice Einträge! (wo ar/ap-Eintrag fehlt)");
for my $invoice ( @{ $verwaiste_invoice }) {
if (@$verwaiste_invoice) {
$self->tester->ok(0, "Es gibt verwaiste invoice Einträge! (wo ar/ap-Eintrag fehlt)");
for my $invoice ( @{ $verwaiste_invoice }) {