X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/11560e68081ecc0095a61f408ce1e88314ada07e..3e79972f6ef5617708e4eef5d66c82a66cf6a588:/bin/mozilla/wh.pl diff --git a/bin/mozilla/wh.pl b/bin/mozilla/wh.pl index 06d5f8b23..980cddb2e 100644 --- a/bin/mozilla/wh.pl +++ b/bin/mozilla/wh.pl @@ -753,9 +753,8 @@ sub generate_journal { if ($entry->{assembled}) { my $insertdate = DateTime->from_kivitendo($entry->{shippingdate}); - if (ref $undo_date eq 'DateTime' && ref $insertdate eq 'DateTime') { - my $undo_assembly = DateTime->compare($insertdate, $undo_date) == 1 ? 1 : 0; - $row->{ids}->{raw_data} = checkbox_tag("ids[]", value => $entry->{trans_id}, "data-checkall" => 1) if $undo_assembly; + if (ref $undo_date eq 'DateTime' && ref $insertdate eq 'DateTime' && $insertdate > $undo_date) { + $row->{ids}->{raw_data} = checkbox_tag("ids[]", value => $entry->{trans_id}, "data-checkall" => 1); } } $row->{trans_type}->{raw_data} = $entry->{trans_type};