Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision eefbbed3

Von Jan Büren vor etwa 4 Jahren hinzugefügt

  • ID eefbbed35a09fbca6ad638e0e52f03f750c7e442
  • Vorgänger bfcdd44a
  • Nachfolger a2b43e37

Verkaufsbericht: Transportmittel in Bericht mitausgeben

Unterschiede anzeigen:

SL/VK.pm
56 56
  # so we extract both versions in our query and later overwrite the description in article mode
57 57

  
58 58
  my $query =
59
    qq|SELECT ct.id as customerid, ct.name as customername,ct.customernumber,ct.country,ar.invnumber,ar.id,ar.transdate,p.partnumber,p.description as description, pg.partsgroup,i.parts_id,i.qty,i.price_factor,i.discount,i.description as invoice_description,i.lastcost,i.sellprice,i.fxsellprice,i.marge_total,i.marge_percent,i.unit,b.description as business,e.name as employee,e2.name as salesman, to_char(ar.transdate,'Month') as month, to_char(ar.transdate, 'YYYYMM') as nummonth, p.unit as parts_unit, p.weight, ar.taxincluded | .
59
    qq|SELECT ct.id as customerid, ct.name as customername,ct.customernumber,ct.country,ar.invnumber,ar.shipvia,ar.id,ar.transdate,p.partnumber,p.description as description, pg.partsgroup,i.parts_id,i.qty,i.price_factor,i.discount,i.description as invoice_description,i.lastcost,i.sellprice,i.fxsellprice,i.marge_total,i.marge_percent,i.unit,b.description as business,e.name as employee,e2.name as salesman, to_char(ar.transdate,'Month') as month, to_char(ar.transdate, 'YYYYMM') as nummonth, p.unit as parts_unit, p.weight, ar.taxincluded | .
60 60
    qq|, COALESCE(er.buy, 1) | .
61 61
    qq|FROM invoice i | .
62 62
    qq|RIGHT JOIN ar on (i.trans_id = ar.id) | .

Auch abrufbar als: Unified diff