Revision 745efbd0
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
SL/DN.pm | ||
---|---|---|
620 | 620 |
push(@values, $form->{department_id}); |
621 | 621 |
} |
622 | 622 |
|
623 |
if ($form->{payment_id}) { |
|
624 |
$where .= " AND a.payment_id = ?"; |
|
625 |
push(@values, $form->{payment_id}); |
|
626 |
} |
|
627 |
|
|
623 | 628 |
my %columns = ( |
624 | 629 |
"ordnumber" => "a.ordnumber", |
625 | 630 |
"invnumber" => "a.invnumber", |
bin/mozilla/dn.pl | ||
---|---|---|
41 | 41 |
use SL::DN; |
42 | 42 |
use SL::DB::Department; |
43 | 43 |
use SL::DB::Dunning; |
44 |
use SL::DB::Manager::PaymentTerm; |
|
44 | 45 |
use SL::File; |
45 | 46 |
use SL::Helper::Flash qw(flash); |
46 | 47 |
use SL::Locale::String qw(t8); |
... | ... | |
111 | 112 |
DN->get_config(\%myconfig, \%$form); |
112 | 113 |
|
113 | 114 |
$form->get_lists("departments" => "ALL_DEPARTMENTS"); |
115 |
$::form->{ALL_PAYMENT_TERMS} = SL::DB::Manager::PaymentTerm->get_all_sorted; |
|
114 | 116 |
|
115 | 117 |
$form->{SHOW_DUNNING_LEVEL_SELECTION} = $form->{DUNNING} && scalar @{ $form->{DUNNING} }; |
116 | 118 |
$form->{SHOW_DEPARTMENT_SELECTION} = $form->{ALL_DEPARTMENTS} && scalar @{ $form->{ALL_DEPARTMENTS} || [] }; |
templates/design40_webpages/dunning/add.html | ||
---|---|---|
46 | 46 |
<th>[% 'Order Number' | $T8 %]</th> |
47 | 47 |
<td><input type="text" name="ordnumber" class="wi-lightwide"></td> |
48 | 48 |
</tr> |
49 |
<tr> |
|
50 |
<th>[% 'Payment Term' | $T8 %]</th> |
|
51 |
<td>[% L.select_tag('payment_id', ALL_PAYMENT_TERMS, with_empty=1, title_key='description', with_empty=1, class="wi-lightwide") %]</td> |
|
52 |
</tr> |
|
49 | 53 |
<tr> |
50 | 54 |
<th>[% 'Notes' | $T8 %]</th> |
51 | 55 |
<td><input type="text" name="notes" class="wi-lightwide"></td> |
templates/webpages/dunning/add.html | ||
---|---|---|
43 | 43 |
<td colspan="3"><input name="ordnumber" size="20"></td> |
44 | 44 |
</tr> |
45 | 45 |
|
46 |
<tr> |
|
47 |
<th align="right" nowrap>[% 'Payment Term' | $T8 %]</th> |
|
48 |
<td colspan="3">[% L.select_tag('payment_id', ALL_PAYMENT_TERMS, with_empty=1, title_key='description', with_empty=1) %]</td> |
|
49 |
</tr> |
|
50 |
|
|
46 | 51 |
<tr> |
47 | 52 |
<th align="right" nowrap>[% 'Notes' | $T8 %]</th> |
48 | 53 |
<td colspan="3"><input name="notes" size="40"></td> |
Auch abrufbar als: Unified diff
Dunning: Beim Erzeugen nach Zahlungsbedingung filtern