Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1e091879

Von Bernd Bleßmann vor fast 4 Jahren hinzugefügt

  • ID 1e09187933c03ee698a28310b34be95177c437eb
  • Vorgänger d1054383
  • Nachfolger 10fe2228

Einkaufsrechnungen: Vorgangsbezeichnung speichern und danach suchen können

Unterschiede anzeigen:

SL/AP.pm
450 450
    qq|SELECT a.id, a.invnumber, a.transdate, a.duedate, a.amount, a.paid, | .
451 451
    qq|  a.ordnumber, v.name, a.invoice, a.netamount, a.datepaid, a.notes, | .
452 452
    qq|  a.globalproject_id, a.storno, a.storno_id, a.direct_debit, | .
453
    qq|  a.transaction_description, | .
453 454
    qq|  pr.projectnumber AS globalprojectnumber, | .
454 455
    qq|  e.name AS employee, | .
455 456
    qq|  v.vendornumber, v.country, v.ustid, | .
......
533 534
    $where .= " AND a.ordnumber ILIKE ?";
534 535
    push(@values, like($form->{ordnumber}));
535 536
  }
537
  if ($form->{transaction_description}) {
538
    $where .= " AND a.transaction_description ILIKE ?";
539
    push(@values, like($form->{transaction_description}));
540
  }
536 541
  if ($form->{notes}) {
537 542
    $where .= " AND lower(a.notes) LIKE ?";
538 543
    push(@values, like($form->{notes}));
SL/IR.pm
737 737
                invoice      = ?, taxzone_id  = ?, notes         = ?, taxincluded  = ?,
738 738
                intnotes     = ?, storno_id   = ?, storno        = ?, tax_point    = ?,
739 739
                cp_id        = ?, employee_id = ?, department_id = ?, delivery_term_id = ?,
740
                payment_id   = ?,
740
                payment_id   = ?, transaction_description        = ?,
741 741
                currency_id = (SELECT id FROM currencies WHERE name = ?),
742 742
                globalproject_id = ?, direct_debit = ?
743 743
              WHERE id = ?|;
......
748 748
            '1',                             $taxzone_id, $restricter->process($form->{notes}),               $form->{taxincluded} ? 't' : 'f',
749 749
                $form->{intnotes},           conv_i($form->{storno_id}),     $form->{storno}      ? 't' : 'f', conv_date($form->{tax_point}),
750 750
         conv_i($form->{cp_id}),      conv_i($form->{employee_id}), conv_i($form->{department_id}), conv_i($form->{delivery_term_id}),
751
         conv_i($form->{payment_id}),
751
         conv_i($form->{payment_id}), $form->{transaction_description},
752 752
                $form->{"currency"},
753 753
         conv_i($form->{globalproject_id}),
754 754
                $form->{direct_debit} ? 't' : 'f',
......
1006 1006
                ordnumber, quonumber, paid, taxincluded, notes, taxzone_id, storno, gldate,
1007 1007
                mtime, itime,
1008 1008
                intnotes, (SELECT cu.name FROM currencies cu WHERE cu.id=ap.currency_id) AS currency, direct_debit,
1009
                payment_id, delivery_term_id
1009
                payment_id, delivery_term_id, transaction_description
1010 1010
              FROM ap
1011 1011
              WHERE id = ?|;
1012 1012
  $ref = selectfirst_hashref_query($form, $dbh, $query, conv_i($form->{id}));
templates/webpages/ap/search.html
29 29
      <th align=right nowrap>[% 'Order Number' | $T8 %]</th>
30 30
      <td>[% L.input_tag("ordnumber", "", style=style) %]</td>
31 31
     </tr>
32
     <tr>
33
      <th align="right" nowrap>[% 'Transaction description' | $T8 %]</th>
34
      <td>[% L.input_tag("transaction_description", "", style=style) %]</td>
32 35
     <tr>
33 36
      <th align=right nowrap>[% 'Notes' | $T8 %]</th>
34 37
      <td>[% L.input_tag("notes", "", style=style) %]</td>
......
119 122
           <td nowrap>[% 'Subtotal' | $T8 %]</td>
120 123
           <td align=right><input name="l_globalprojectnumber" class=checkbox type=checkbox value=Y></td>
121 124
           <td nowrap>[% 'Document Project Number' | $T8 %]</td>
125
           <td align="right"><input name="l_transaction_description" id="l_transaction_description" class=checkbox type=checkbox value=Y[% IF INSTANCE_CONF.get_require_transaction_description_ps %] checked[% END %]></td>
126
           <td nowrap>[% 'Transaction description' | $T8 %]</td>
122 127
         </tr>
123 128
          <tr>
124 129
           <td align=right><input name="l_taxzone" class=checkbox type=checkbox value=Y></td>
templates/webpages/ir/form_header.html
131 131
          </td>
132 132
        </tr>
133 133
[%- END %]
134
        <tr>
135
          <th align="right">[% 'Transaction description' | $T8 %]</th>
136
          <td colspan="3">[% L.input_tag("transaction_description", transaction_description, size=35, "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '') %]</td>
137
        </tr>
134 138
      </table>
135 139
    </td>
136 140
    <td align="right" valign="top">

Auch abrufbar als: Unified diff