X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fwh.pl;h=980cddb2ec097697e56d4f7e397d64c111172d8b;hb=4a852cb1ba0225e6e086786d3950fc7a3c068f38;hp=06d5f8b2325136c187d1e471b05dce0a2c3fbfbe;hpb=8453789b42c168bbaec52a87527191a25d9b2080;p=kivitendo-erp.git 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};