Revision f2354cab
Von Sven Schöling vor etwa 15 Jahren hinzugefügt
bin/mozilla/is.pl | ||
---|---|---|
45 | 45 |
use strict; |
46 | 46 |
|
47 | 47 |
my $edit; |
48 |
my $payment; |
|
48 |
#my $payment;
|
|
49 | 49 |
my $print_post; |
50 | 50 |
|
51 | 51 |
1; |
... | ... | |
289 | 289 |
$form->{defaultcurrency} = $form->get_default_currency(\%myconfig); |
290 | 290 |
$form->{radier} = ($form->current_date(\%myconfig) eq $form->{gldate}) ? 1 : 0; |
291 | 291 |
|
292 |
$payment = qq|<option value=""></option>|; |
|
293 |
foreach my $item (@{ $form->{payment_terms} }) { |
|
294 |
if ($form->{payment_id} eq $item->{id}) { |
|
295 |
$payment .= qq|<option value="$item->{id}" selected>$item->{description}</option>|; |
|
296 |
} else { |
|
297 |
$payment .= qq|<option value="$item->{id}">$item->{description}</option>|; |
|
298 |
} |
|
299 |
} |
|
300 |
|
|
301 | 292 |
my $set_duedate_url = "$form->{script}?action=set_duedate"; |
302 | 293 |
|
303 | 294 |
push @ { $form->{AJAX} }, new CGI::Ajax( 'set_duedate' => $set_duedate_url ); |
Auch abrufbar als: Unified diff
is: Payment_terms und duedate ajax gefixt.