X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FRP.pm;h=c4a95039b3ff591991e447e2f172b1302e0ac877;hb=45659209a7151609c68e28281fe06407076cea5f;hp=095f7581cf034fcbce0b0e329410a061bd84f1c3;hpb=d5dee66fbe81b6edb12d1c29737937acc5bf21a5;p=kivitendo-erp.git diff --git a/SL/RP.pm b/SL/RP.pm index 095f7581c..c4a95039b 100644 --- a/SL/RP.pm +++ b/SL/RP.pm @@ -531,13 +531,6 @@ sub get_accounts_g { FROM acc_trans ac LEFT JOIN chart c ON (c.id = ac.chart_id) LEFT JOIN ar ON (ar.id = ac.trans_id) - LEFT JOIN taxkeys tk ON (tk.id = ( - SELECT id FROM taxkeys - WHERE chart_id = ac.chart_id - AND startdate <= COALESCE(ar.deliverydate,ar.transdate) - ORDER BY startdate DESC LIMIT 1 - ) - ) WHERE ac.trans_id IN (SELECT DISTINCT trans_id FROM acc_trans WHERE 1=1 $subwhere) GROUP BY c.$category