Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f47c2cd1

Von Moritz Bunkus vor fast 12 Jahren hinzugefügt

  • ID f47c2cd1dcbf2423d797d16a6e282be5163a398d
  • Vorgänger 7c9fc25b
  • Nachfolger d623e974

Einkaufsrechnungen: Checkbox für "Lastschrifteinzug"; Vorbelegung aus Stammdaten

Unterschiede anzeigen:

SL/IR.pm
658 658
                invoice      = ?, taxzone_id  = ?, notes         = ?, taxincluded = ?,
659 659
                intnotes     = ?, curr        = ?, storno_id     = ?, storno      = ?,
660 660
                cp_id        = ?, employee_id = ?, department_id = ?,
661
                globalproject_id = ?
661
                globalproject_id = ?, direct_debit = ?
662 662
              WHERE id = ?|;
663 663
  @values = (
664 664
                $form->{invnumber},          $form->{ordnumber},           $form->{quonumber},      conv_date($form->{invdate}),
......
668 668
                $form->{intnotes},           $form->{currency},     conv_i($form->{storno_id}),     $form->{storno}      ? 't' : 'f',
669 669
         conv_i($form->{cp_id}),      conv_i($form->{employee_id}), conv_i($form->{department_id}),
670 670
         conv_i($form->{globalproject_id}),
671
                $form->{direct_debit} ? 't' : 'f',
671 672
         conv_i($form->{id})
672 673
  );
673 674
  do_query($form, $dbh, $query, @values);
......
911 912
  $query = qq|SELECT cp_id, invnumber, transdate AS invdate, duedate,
912 913
                orddate, quodate, globalproject_id,
913 914
                ordnumber, quonumber, paid, taxincluded, notes, taxzone_id, storno, gldate,
914
                intnotes, curr AS currency
915
                intnotes, curr AS currency, direct_debit
915 916
              FROM ap
916 917
              WHERE id = ?|;
917 918
  $ref = selectfirst_hashref_query($form, $dbh, $query, conv_i($form->{id}));
......
1061 1062
         v.id AS vendor_id, v.name AS vendor, v.discount as vendor_discount,
1062 1063
         v.creditlimit, v.terms, v.notes AS intnotes,
1063 1064
         v.email, v.cc, v.bcc, v.language_id, v.payment_id,
1064
         v.street, v.zipcode, v.city, v.country, v.taxzone_id, v.curr,
1065
         v.street, v.zipcode, v.city, v.country, v.taxzone_id, v.curr, v.direct_debit,
1065 1066
         $duedate + COALESCE(pt.terms_netto, 0) AS duedate,
1066 1067
         b.description AS business
1067 1068
       FROM vendor v

Auch abrufbar als: Unified diff