Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2cb10c92

Von Udo Spallek vor etwa 17 Jahren hinzugefügt

  • ID 2cb10c92a906996ae3cd2e53b0ba20e183faadd1
  • Vorgänger 6824628e
  • Nachfolger e3232a58

Bug 760: Mahnungen drucken: Kunden Kontakt eingefügt. Betr. Tabelle: contacts, Templatevariablen cp_*

Unterschiede anzeigen:

SL/DN.pm
686 686
         dcfg.email_subject, dcfg.email_body, dcfg.email_attachment,
687 687

  
688 688
         ar.transdate,       ar.duedate,      ar.customer_id,
689
         ar.invnumber,       ar.ordnumber,
689
         ar.invnumber,       ar.ordnumber,    ar.cp_id,
690 690
         ar.amount,          ar.netamount,    ar.paid,
691 691
         ar.amount - ar.paid AS open_amount,
692 692
         ar.amount - ar.paid + da.fee + da.interest AS linetotal
......
712 712
  $query =
713 713
    qq|SELECT
714 714
         c.id AS customer_id, c.name,         c.street,       c.zipcode, c.city,
715
         c.country,           c.department_1, c.department_2, c.email, c.customernumber
715
         c.country,           c.department_1, c.department_2, c.email, c.customernumber,
716
         -- contact information
717
         co.*
716 718
       FROM dunning d
717
       LEFT JOIN ar         ON (d.trans_id = ar.id)
718
       LEFT JOIN customer c ON (ar.customer_id = c.id)
719
       LEFT JOIN ar          ON (d.trans_id = ar.id)
720
       LEFT JOIN customer c  ON (ar.customer_id = c.id)
721
       LEFT JOIN contacts co ON (ar.cp_id = co.cp_id)
719 722
       WHERE (d.dunning_id = ?)
720 723
       LIMIT 1|;
721 724
  $ref = selectfirst_hashref_query($form, $dbh, $query, $dunning_id);

Auch abrufbar als: Unified diff