Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6d70c6a2

Von Moritz Bunkus vor mehr als 15 Jahren hinzugefügt

  • ID 6d70c6a247b5046219d135f29d1cf0066b53ee9b
  • Vorgänger d5993f4f
  • Nachfolger 8294e683

Überreste aus altem Query sorgen für ungültige SQL-Abfrage. Fix für Bug 966.

Unterschiede anzeigen:

SL/GL.pm
346 346
    qq|SELECT
347 347
        ac.acc_trans_id, g.id, 'gl' AS type, $false AS invoice, g.reference, ac.taxkey, c.link,
348 348
        g.description, ac.transdate, ac.source, ac.trans_id,
349
        ac.amount, c.accno, g.notes, t.chart_id,
350
        CASE WHEN (COALESCE(e.name, '') = '') THEN e.login ELSE e.name END AS employee
349
        ac.amount, c.accno, g.notes, t.chart_id
351 350
        $project_columns
352 351
        $columns_for_sorting{gl}
353 352
      FROM gl g, acc_trans ac $project_join, chart c
......
360 359

  
361 360
      SELECT ac.acc_trans_id, a.id, 'ar' AS type, a.invoice, a.invnumber, ac.taxkey, c.link,
362 361
        ct.name, ac.transdate, ac.source, ac.trans_id,
363
        ac.amount, c.accno, a.notes, t.chart_id,
364
        CASE WHEN (COALESCE(e.name, '') = '') THEN e.login ELSE e.name END AS employee
362
        ac.amount, c.accno, a.notes, t.chart_id
365 363
        $project_columns
366 364
        $columns_for_sorting{arap}
367 365
      FROM ar a, acc_trans ac $project_join, customer ct, chart c
......
375 373

  
376 374
      SELECT ac.acc_trans_id, a.id, 'ap' AS type, a.invoice, a.invnumber, ac.taxkey, c.link,
377 375
        ct.name, ac.transdate, ac.source, ac.trans_id,
378
        ac.amount, c.accno, a.notes, t.chart_id,
379
        CASE WHEN (COALESCE(e.name, '') = '') THEN e.login ELSE e.name END AS employee
376
        ac.amount, c.accno, a.notes, t.chart_id
380 377
        $project_columns
381 378
        $columns_for_sorting{arap}
382 379
      FROM ap a, acc_trans ac $project_join, vendor ct, chart c

Auch abrufbar als: Unified diff