Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e24e6570

Von Sven Schöling vor mehr als 9 Jahren hinzugefügt

  • ID e24e657067548d45e6a23ff56ee4c3ee69b5687b
  • Vorgänger b38ecee7
  • Nachfolger 9c8d0637

Rechnungen nach Fälligkeitsdatum sortieren

Unterschiede anzeigen:

SL/AR.pm
549 549
    $where .= " AND a.transdate <= ?";
550 550
    push(@values, $form->{transdateto});
551 551
  }
552
  if ($form->{duedatefrom}) {
553
    $where .= " AND a.duedate >= ?";
554
    push(@values, $form->{duedatefrom});
555
  }
556
  if ($form->{duedateto}) {
557
    $where .= " AND a.duedate <= ?";
558
    push(@values, $form->{duedateto});
559
  }
552 560
  if ($form->{open} || $form->{closed}) {
553 561
    unless ($form->{open} && $form->{closed}) {
554 562
      $where .= " AND a.amount <> a.paid" if ($form->{open});
bin/mozilla/ar.pl
922 922
  push @columns, map { "cvar_$_->{name}" } @ct_includeable_custom_variables;
923 923

  
924 924
  my @hidden_variables = map { "l_${_}" } @columns;
925
  push @hidden_variables, "l_subtotal", qw(open closed customer invnumber ordnumber cusordnumber transaction_description notes project_id transdatefrom transdateto employee_id salesman_id business_id);
925
  push @hidden_variables, "l_subtotal", qw(open closed customer invnumber ordnumber cusordnumber transaction_description notes project_id transdatefrom transdateto duedatefrom duedateto employee_id salesman_id business_id);
926 926
  push @hidden_variables, map { "cvar_$_->{name}" } @ct_searchable_custom_variables;
927 927

  
928 928
  $href = build_std_url('action=ar_transactions', grep { $form->{$_} } @hidden_variables);
templates/webpages/ar/search.html
106 106
     </tr>
107 107
    [% END %]
108 108
     <tr>
109
      <th align=right nowrap>[% 'From' | $T8 %]</th>
109
      <th align=right nowrap>[% 'Invoice Date' | $T8 %]</th>
110 110
      <td>
111
       [% 'From' | $T8 %]
111 112
       [% L.date_tag('transdatefrom') %]
112 113
      </td>
113 114
     <th align=right>[% 'Bis' | $T8 %]</th>
......
115 116
      [% L.date_tag('transdateto') %]
116 117
     </td>
117 118
    </tr>
119
     <tr>
120
      <th align=right nowrap>[% 'Due Date' | $T8 %]</th>
121
      <td>
122
       [% 'From' | $T8 %]
123
       [% L.date_tag('duedatefrom') %]
124
      </td>
125
     <th align=right>[% 'Bis' | $T8 %]</th>
126
     <td>
127
      [% L.date_tag('duedateto') %]
128
     </td>
129
    </tr>
118 130

  
119 131
[%- IF CT_CUSTOM_VARIABLES.size %]
120 132
    <tr>

Auch abrufbar als: Unified diff