Revision 67b0f6a6
Von Sven Schöling vor fast 15 Jahren hinzugefügt
bin/mozilla/ir.pl | ||
---|---|---|
97 | 97 |
|
98 | 98 |
$main::auth->assert('vendor_invoice_edit'); |
99 | 99 |
|
100 |
$form->{vc} = 'vendor'; |
|
101 |
|
|
100 | 102 |
# create links |
101 | 103 |
$form->{webdav} = $main::webdav; |
102 | 104 |
$form->{jsscript} = 1; |
... | ... | |
254 | 256 |
my $locale = $main::locale; |
255 | 257 |
my $cgi = $main::cgi; |
256 | 258 |
|
257 |
$main::auth->assert('vendor_invoice_edit');
|
|
259 |
$main::auth->assert('invoice_edit'); |
|
258 | 260 |
|
259 |
push @{ $form->{AJAX} }, CGI::Ajax->new('set_duedate_vendor' => "$form->{script}?action=set_duedate_vendor"); |
|
261 |
our %TMPL_VAR = (); |
|
262 |
my @custom_hiddens; |
|
260 | 263 |
|
261 |
# set option selected |
|
262 |
foreach my $item (qw(AP vendor currency department)) { |
|
263 |
$form->{"select$item"} =~ s/ selected//; |
|
264 |
$form->{"select$item"} =~ s/option>\Q$form->{$item}\E/option selected>$form->{$item}/; |
|
265 |
} |
|
264 |
$form->{employee_id} = $form->{old_employee_id} if $form->{old_employee_id}; |
|
265 |
$form->{salesman_id} = $form->{old_salesman_id} if $form->{old_salesman_id}; |
|
266 | 266 |
|
267 |
$form->{employee_id} = $form->{old_employee_id} if $form->{old_employee_id}; |
|
268 |
$form->{salesman_id} = $form->{old_salesman_id} if $form->{old_salesman_id}; |
|
269 | 267 |
$form->{defaultcurrency} = $form->get_default_currency(\%myconfig); |
270 | 268 |
$form->{radier} = ($form->current_date(\%myconfig) eq $form->{gldate}) ? 1 : 0; |
271 |
$form->{exchangerate} = $form->format_amount(\%myconfig, $form->{exchangerate}); |
|
272 |
$form->{creditlimit} = $form->format_amount(\%myconfig, $form->{creditlimit}, 0, "0"); |
|
273 |
$form->{creditremaining} = $form->format_amount(\%myconfig, $form->{creditremaining}, 0, "0"); |
|
274 |
|
|
275 |
my $exchangerate = ""; |
|
276 |
if ($form->{currency} ne $form->{defaultcurrency}) { |
|
277 |
if ($form->{forex}) { |
|
278 |
$exchangerate .= qq| <th align=right nowrap>| . $locale->text('Exchangerate') . qq|</th> |
|
279 |
<td>$form->{exchangerate}<input type=hidden name=exchangerate value=$form->{exchangerate}></td>\n|; |
|
280 |
} else { |
|
281 |
$exchangerate .= qq| <th align=right nowrap>| . $locale->text('Exchangerate') . qq|</th> |
|
282 |
<td><input name=exchangerate size=10 value=$form->{exchangerate}></td>\n|; |
|
283 |
} |
|
284 |
} |
|
285 |
$exchangerate .= qq| <input type=hidden name=forex value=$form->{forex}>\n|; |
|
269 |
|
|
270 |
my $set_duedate_url = "$form->{script}?action=set_duedate"; |
|
271 |
|
|
272 |
push @ { $form->{AJAX} }, new CGI::Ajax( 'set_duedate' => $set_duedate_url ); |
|
286 | 273 |
|
287 | 274 |
my @old_project_ids = ($form->{"globalproject_id"}); |
288 | 275 |
map { push @old_project_ids, $form->{"project_id_$_"} if $form->{"project_id_$_"}; } 1..$form->{"rowcount"}; |
289 | 276 |
|
290 | 277 |
$form->get_lists("contacts" => "ALL_CONTACTS", |
291 |
"projects" => { "key" => "ALL_PROJECTS", |
|
292 |
"all" => 0, |
|
293 |
"old_id" => \@old_project_ids }, |
|
278 |
"shipto" => "ALL_SHIPTO", |
|
279 |
"projects" => { "key" => "ALL_PROJECTS", |
|
280 |
"all" => 0, |
|
281 |
"old_id" => \@old_project_ids }, |
|
282 |
"employees" => "ALL_EMPLOYEES", |
|
294 | 283 |
"taxzones" => "ALL_TAXZONES", |
295 |
"employees" => "ALL_SALESMEN", |
|
296 | 284 |
"currencies" => "ALL_CURRENCIES", |
297 | 285 |
"vendors" => "ALL_VENDORS", |
298 | 286 |
"price_factors" => "ALL_PRICE_FACTORS"); |
299 | 287 |
|
300 |
my %labels; |
|
301 |
my @values = (undef); |
|
302 |
foreach my $item (@{ $form->{"ALL_CONTACTS"} }) { |
|
303 |
push(@values, $item->{"cp_id"}); |
|
304 |
$labels{$item->{"cp_id"}} = $item->{"cp_name"} . ($item->{"cp_abteilung"} ? " ($item->{cp_abteilung})" : ""); |
|
305 |
} |
|
306 |
|
|
307 |
my $contact; |
|
308 |
if (scalar @values > 1) { |
|
309 |
$contact = qq| |
|
310 |
<tr> |
|
311 |
<th align="right">| . $locale->text('Contact Person') . qq|</th> |
|
312 |
<td>| . NTI($cgi->popup_menu('-name' => 'cp_id', '-values' => \@values, '-style' => 'width: 250px', |
|
313 |
'-labels' => \%labels, '-default' => $form->{"cp_id"})) . qq| |
|
314 |
</td> |
|
315 |
</tr>|; |
|
316 |
} |
|
317 |
|
|
318 |
%labels = (); |
|
319 |
@values = (""); |
|
320 |
foreach my $item (@{ $form->{"ALL_PROJECTS"} }) { |
|
321 |
push(@values, $item->{"id"}); |
|
322 |
$labels{$item->{"id"}} = $item->{"projectnumber"}; |
|
323 |
} |
|
324 |
my $globalprojectnumber = NTI($cgi->popup_menu('-name' => 'globalproject_id', '-values' => \@values, '-labels' => \%labels, |
|
325 |
'-default' => $form->{"globalproject_id"})); |
|
326 |
|
|
327 |
%labels = (); |
|
328 |
@values = (); |
|
329 |
my $i = 0; |
|
330 |
foreach my $item (@{ $form->{"ALL_CURRENCIES"} }) { |
|
331 |
push(@values, $item); |
|
332 |
$labels{$item} = $item; |
|
333 |
} |
|
334 |
|
|
335 |
$form->{currency} = $form->{defaultcurrency} unless $form->{currency}; |
|
336 |
my $currencies; |
|
337 |
if (scalar @values) { |
|
338 |
$currencies = qq| |
|
339 |
<tr> |
|
340 |
<th align="right">| . $locale->text('Currency') . qq|</th> |
|
341 |
<td>| . NTI($cgi->popup_menu('-name' => 'currency', '-default' => $form->{"currency"}, |
|
342 |
'-values' => \@values, '-labels' => \%labels)) . qq| |
|
343 |
</td> |
|
344 |
</tr>|; |
|
345 |
} |
|
346 |
|
|
347 |
%labels = (); |
|
348 |
@values = (); |
|
349 |
foreach my $item (@{ $form->{"ALL_SALESMEN"} }) { |
|
350 |
push(@values, $item->{"id"}); |
|
351 |
$labels{$item->{"id"}} = $item->{"name"}; |
|
352 |
} |
|
353 |
my $employees = qq| |
|
354 |
<tr> |
|
355 |
<th align="right">| . $locale->text('Employee') . qq|</th> |
|
356 |
<td>| . NTI($cgi->popup_menu('-name' => 'employee_id', '-default' => $form->{"employee_id"}, |
|
357 |
'-values' => \@values, '-labels' => \%labels)) . qq| |
|
358 |
</td> |
|
359 |
</tr>|; |
|
360 |
|
|
361 |
%labels = (); |
|
362 |
@values = (); |
|
363 |
foreach my $item (@{ $form->{"ALL_VENDORS"} }) { |
|
364 |
push(@values, $item->{name}.qq|--|.$item->{"id"}); |
|
365 |
$labels{$item->{name}.qq|--|.$item->{"id"}} = $item->{"name"}; |
|
366 |
} |
|
367 |
|
|
368 |
$form->{selectvendor} = ($myconfig{vclimit} > scalar(@values)); |
|
369 |
|
|
370 |
my $vendors = qq| |
|
371 |
<th align="right">| . $locale->text('Vendor') . qq|</th> |
|
372 |
<td>| . |
|
373 |
(($myconfig{vclimit} <= scalar(@values)) |
|
374 |
? qq|<input type="text" value="| . H($form->{vendor}) . qq|" name="vendor">| |
|
375 |
: (NTI($cgi->popup_menu('-name' => 'vendor', '-default' => $form->{oldvendor}, |
|
376 |
'-onChange' => 'document.getElementById(\'update_button\').click();', |
|
377 |
'-values' => \@values, '-labels' => \%labels, '-style' => 'width: 250px')))) . qq| |
|
378 |
<input type="button" value="| . $locale->text('Details (one letter abbreviation)') . qq|" onclick="show_vc_details('vendor')"> |
|
379 |
</td>|; |
|
380 |
|
|
381 |
%labels = (); |
|
382 |
@values = (); |
|
383 |
foreach my $item (@{ $form->{"ALL_TAXZONES"} }) { |
|
384 |
push(@values, $item->{"id"}); |
|
385 |
$labels{$item->{"id"}} = $item->{"description"}; |
|
386 |
} |
|
387 |
|
|
388 |
my $taxzone; |
|
389 |
if (!$form->{"id"}) { |
|
390 |
$taxzone = qq| |
|
391 |
<tr> |
|
392 |
<th align="right">| . $locale->text('Steuersatz') . qq|</th> |
|
393 |
<td>| . NTI($cgi->popup_menu('-name' => 'taxzone_id', '-default' => $form->{"taxzone_id"}, |
|
394 |
'-values' => \@values, '-labels' => \%labels, '-style' => 'width: 250px')) . qq| |
|
395 |
</td> |
|
396 |
</tr>|; |
|
397 |
} else { |
|
398 |
$taxzone = qq| |
|
399 |
<tr> |
|
400 |
<th align="right">| . $locale->text('Steuersatz') . qq|</th> |
|
401 |
<td> |
|
402 |
<input type="hidden" name="taxzone_id" value="| . H($form->{"taxzone_id"}) . qq|"> |
|
403 |
| . H($labels{$form->{"taxzone_id"}}) . qq| |
|
404 |
</td> |
|
405 |
</tr>|; |
|
406 |
} |
|
407 |
|
|
408 |
my $department = qq| |
|
409 |
<tr> |
|
410 |
<th align="right" nowrap>| . $locale->text('Department') . qq|</th> |
|
411 |
<td colspan="3"><select name="department" style="width: 250px">$form->{selectdepartment}</select> |
|
412 |
<input type="hidden" name="selectdepartment" value="$form->{selectdepartment}"> |
|
413 |
</td> |
|
414 |
</tr>\n| if $form->{selectdepartment}; |
|
415 |
|
|
416 |
my $n = ($form->{creditremaining} =~ /-/) ? "0" : "1"; |
|
417 |
|
|
418 |
# use JavaScript Calendar or not |
|
419 |
$form->{jsscript} = 1; |
|
420 |
my $jsscript = ""; |
|
421 |
|
|
422 |
my $button1 = qq| |
|
423 |
<td nowrap> |
|
424 |
<input name=invdate id=invdate size=11 title="$myconfig{dateformat}" value="$form->{invdate}" onBlur=\"check_right_date_format(this)\" |
|
425 |
onChange="if (this.value) set_duedate_vendor(['invdate__' + this.value, 'old_duedate__' + document.getElementsByName('duedate')[0].value, 'vendor_id__' + document.getElementsByName('vendor_id')[0].value],['duedate'])"> |
|
426 |
<input type=button name=invdate id="trigger1" value="?"> |
|
427 |
</td>\n|; |
|
428 |
|
|
429 |
#, 'old_duedate__'' + document.getElementsByName('duedate')[0].value, 'vendor_id__' + document.getElementsByName('vendor_id')[0].value],['duedate'])"> |
|
430 |
my $button2 = qq| |
|
431 |
<td width="13" nowrap> |
|
432 |
<input name=duedate id=duedate size=11 title="$myconfig{dateformat}" value="$form->{duedate}" onBlur=\"check_right_date_format(this)\"> |
|
433 |
<input type=button name=duedate id="trigger2" value=| . $locale->text('button') . qq|> |
|
434 |
</td>\n|; |
|
435 |
|
|
436 |
#write Trigger |
|
437 |
$jsscript = |
|
438 |
Form->write_trigger(\%myconfig, "2", |
|
439 |
"invdate", "BL", "trigger1", |
|
440 |
"duedate", "BL", "trigger2"); |
|
288 |
$TMPL_VAR{sales_employee_labels} = sub { $_[0]->{name} || $_[0]->{login} }; |
|
289 |
# $TMPL_VAR{shipto_labels} = sub { join "; ", grep { $_ } map { $_[0]->{"shipto${_}" } } qw(name department_1 street city) }; |
|
290 |
$TMPL_VAR{contact_labels} = sub { join(', ', $_[0]->{"cp_name"}, $_[0]->{"cp_givenname"}) . ($_[0]->{cp_abteilung} ? " ($_[0]->{cp_abteilung})" : "") }; |
|
291 |
$TMPL_VAR{department_labels} = sub { "$_[0]->{description}--$_[0]->{id}" }; |
|
292 |
|
|
293 |
# customer |
|
294 |
$TMPL_VAR{vc_keys} = sub { "$_[0]->{name}--$_[0]->{id}" }; |
|
295 |
$TMPL_VAR{vclimit} = $myconfig{vclimit}; |
|
296 |
$TMPL_VAR{vc_select} = "customer_or_vendor_selection_window('vendor', '', 1, 0)"; |
|
297 |
push @custom_hiddens, "vendor_id"; |
|
298 |
push @custom_hiddens, "oldvendor"; |
|
299 |
push @custom_hiddens, "selectvendor"; |
|
300 |
|
|
301 |
# currencies and exchangerate |
|
302 |
my @values = map { $_ } @{ $form->{ALL_CURRENCIES} }; |
|
303 |
my %labels = map { $_ => $_ } @{ $form->{ALL_CURRENCIES} }; |
|
304 |
$form->{currency} = $form->{defaultcurrency} unless $form->{currency}; |
|
305 |
$TMPL_VAR{show_exchangerate} = $form->{currency} ne $form->{defaultcurrency}; |
|
306 |
$TMPL_VAR{currencies} = NTI($cgi->popup_menu('-name' => 'currency', '-default' => $form->{"currency"}, |
|
307 |
'-values' => \@values, '-labels' => \%labels)) if scalar @values; |
|
308 |
push @custom_hiddens, "forex"; |
|
309 |
push @custom_hiddens, "exchangerate" if $form->{forex}; |
|
310 |
|
|
311 |
$TMPL_VAR{creditwarning} = ($form->{creditlimit} != 0) && ($form->{creditremaining} < 0) && !$form->{update}; |
|
312 |
$TMPL_VAR{is_credit_remaining_negativ} = $form->{creditremaining} =~ /-/; |
|
313 |
|
|
314 |
$form->{fokus} = "invoice.vendor"; |
|
441 | 315 |
|
442 | 316 |
my $follow_up_vc = $form->{vendor}; |
443 | 317 |
$follow_up_vc =~ s/--\d*\s*$//; |
444 |
my $follow_up_trans_info = "$form->{invnumber} ($follow_up_vc)"; |
|
445 |
|
|
446 |
$form->{javascript} .= qq|<script type="text/javascript" src="js/show_form_details.js"></script>|; |
|
447 |
$form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|; |
|
448 |
$form->{javascript} .= qq|<script type="text/javascript" src="js/show_vc_details.js"></script>|; |
|
449 |
$form->{javascript} .= qq|<script type="text/javascript" src="js/follow_up.js"></script>|; |
|
450 |
|
|
451 |
$jsscript .= $form->write_trigger(\%myconfig, 2, "orddate", "BL", "trigger_orddate", "quodate", "BL", "trigger_quodate"); |
|
452 |
|
|
453 |
$form->header; |
|
454 |
my $onload = qq|focus()|; |
|
455 |
$onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|; |
|
456 |
$onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|; |
|
457 |
print qq| |
|
458 |
<body onLoad="$onload"> |
|
459 |
<script type="text/javascript" src="js/common.js"></script> |
|
460 |
<form method="post" action="ir.pl" name="Form"> |
|
461 |
|; |
|
462 |
|
|
463 |
$form->hide_form(qw(id title vc type level creditlimit creditremaining closedto locked shippted storno storno_id |
|
464 |
max_dunning_level dunning_amount vendor_id oldvendor selectvendor taxaccounts |
|
465 |
fxgain_accno fxloss_accno taxpart taxservice cursor_fokus |
|
466 |
convert_from_oe_ids convert_from_do_ids), |
|
467 |
map { $_.'_rate', $_.'_description' } split / /, $form->{taxaccounts} ); |
|
468 |
|
|
469 |
print qq|<p>$form->{saved_message}</p>| if $form->{saved_message}; |
|
470 |
|
|
471 |
print qq| |
|
318 |
$TMPL_VAR{vendor_name} = $follow_up_vc; |
|
472 | 319 |
|
473 |
<div class="listtop" width="100%">$form->{title}</div> |
|
474 |
|
|
475 |
<table width=100%> |
|
476 |
<tr> |
|
477 |
<td valign="top"> |
|
478 |
<table> |
|
479 |
$vendors |
|
480 |
$contact |
|
481 |
<tr> |
|
482 |
<td align="right">| . $locale->text('Credit Limit') . qq|</td> |
|
483 |
<td>$form->{creditlimit}; | . $locale->text('Remaining') . qq| <span class="plus$n">$form->{creditremaining}</span></td> |
|
484 |
</tr> |
|
485 |
<tr> |
|
486 |
<th align="right">| . $locale->text('Record in') . qq|</th> |
|
487 |
<td colspan="3"><select name="AP" style="width: 250px">$form->{selectAP}</select></td> |
|
488 |
<input type="hidden" name="selectAP" value="$form->{selectAP}"> |
|
489 |
</tr> |
|
490 |
$taxzone |
|
491 |
$department |
|
492 |
<tr> |
|
493 |
$currencies |
|
494 |
$exchangerate |
|
495 |
</tr> |
|
496 |
</table> |
|
497 |
</td> |
|
498 |
<td align=right> |
|
499 |
<table> |
|
500 |
$employees |
|
501 |
<tr> |
|
502 |
<th align=right nowrap>| . $locale->text('Invoice Number') . qq|</th> |
|
503 |
<td><input name=invnumber size=11 value="$form->{invnumber}"></td> |
|
504 |
</tr> |
|
505 |
<tr> |
|
506 |
<th align=right nowrap>| . $locale->text('Invoice Date') . qq|</th> |
|
507 |
$button1 |
|
508 |
</tr> |
|
509 |
<tr> |
|
510 |
<th align=right nowrap>| . $locale->text('Due Date') . qq|</th> |
|
511 |
$button2 |
|
512 |
</tr> |
|
513 |
<tr> |
|
514 |
<th align=right nowrap>| . $locale->text('Order Number') . qq|</th> |
|
515 |
<td><input name=ordnumber size=11 value="$form->{ordnumber}"></td> |
|
516 |
<input type=hidden name=quonumber value="$form->{quonumber}"> |
|
517 |
</tr> |
|
518 |
<tr> |
|
519 |
<th align="right" nowrap>| . $locale->text('Order Date') . qq|</th> |
|
520 |
<td><input name="orddate" id="orddate" size="11" title="$myconfig{dateformat}" value="| . Q($form->{orddate}) . qq|" onBlur=\"check_right_date_format(this)\"> |
|
521 |
<input type="button" name="b_orddate" id="trigger_orddate" value="?"></td> |
|
522 |
</tr> |
|
523 |
<tr> |
|
524 |
<th align="right" nowrap>| . $locale->text('Quotation Date') . qq|</th> |
|
525 |
<td><input name="quodate" id="quodate" size="11" title="$myconfig{dateformat}" value="| . Q($form->{quodate}) . qq|" onBlur=\"check_right_date_format(this)\"> |
|
526 |
<input type="button" name="b_quodate" id="trigger_quodate" value="?"></td> |
|
527 |
</tr> |
|
528 |
<tr> |
|
529 |
<th align="right" nowrap>| . $locale->text('Project Number') . qq|</th> |
|
530 |
<td>$globalprojectnumber</td> |
|
531 |
</tr> |
|
532 |
</table> |
|
533 |
</td> |
|
534 |
</tr> |
|
535 |
</table> |
|
536 |
</td> |
|
537 |
</tr> |
|
320 |
# set option selected |
|
321 |
foreach my $item (qw(AP)) { |
|
322 |
$form->{"select$item"} =~ s/ selected//; |
|
323 |
$form->{"select$item"} =~ s/option>\Q$form->{$item}\E/option selected>$form->{$item}/; |
|
324 |
} |
|
538 | 325 |
|
539 |
$jsscript |
|
326 |
$TMPL_VAR{is_type_credit_note} = $form->{type} eq "credit_note"; |
|
327 |
$TMPL_VAR{is_format_html} = $form->{format} eq 'html'; |
|
328 |
$TMPL_VAR{dateformat} = $myconfig{dateformat}; |
|
329 |
$TMPL_VAR{numberformat} = $myconfig{numberformat}; |
|
330 |
|
|
331 |
# hiddens |
|
332 |
$TMPL_VAR{HIDDENS} = [qw( |
|
333 |
id action type media format queued printed emailed title vc discount |
|
334 |
title creditlimit creditremaining tradediscount business closedto locked shipped storno storno_id |
|
335 |
max_dunning_level dunning_amount |
|
336 |
shiptoname shiptostreet shiptozipcode shiptocity shiptocountry shiptocontact shiptophone shiptofax |
|
337 |
shiptoemail shiptodepartment_1 shiptodepartment_2 message email subject cc bcc taxaccounts cursor_fokus |
|
338 |
convert_from_do_ids convert_from_oe_ids |
|
339 |
), @custom_hiddens, |
|
340 |
map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts}]; |
|
540 | 341 |
|
541 |
<input type=hidden name=webdav value=$main::webdav>
|
|
542 |
|;
|
|
342 |
$form->{jsscript} = 1;
|
|
343 |
$form->header();
|
|
543 | 344 |
|
544 |
foreach my $item (split / /, $form->{taxaccounts}) { |
|
545 |
print qq| |
|
546 |
<input type=hidden name="${item}_rate" value=$form->{"${item}_rate"}> |
|
547 |
<input type=hidden name="${item}_description" value="$form->{"${item}_description"}"> |
|
548 |
|; |
|
549 |
} |
|
345 |
print $form->parse_html_template("ir/form_header", \%TMPL_VAR); |
|
550 | 346 |
|
551 | 347 |
$main::lxdebug->leave_sub(); |
552 | 348 |
} |
templates/webpages/ir/form_header_de.html | ||
---|---|---|
1 |
[%- USE HTML %] |
|
2 |
[%- USE LxERP %] |
|
3 |
[%- SET follow_up_trans_info = invnumber _ ' (' _ vendor_name _ ')' %] |
|
4 |
<body> |
|
5 |
<script type="text/javascript" src="js/common.js"></script> |
|
6 |
<script type="text/javascript" src="js/delivery_vendor_selection.js"></script> |
|
7 |
<script type="text/javascript" src="js/vendor_selection.js"></script> |
|
8 |
<script type="text/javascript" src="js/calculate_qty.js"></script> |
|
9 |
<script type="text/javascript" src="js/follow_up.js"></script> |
|
10 |
<script type="text/javascript" src="js/customer_or_vendor_selection.js"></script> |
|
11 |
|
|
12 |
<form method="post" name="invoice" action="[% script %]"> |
|
13 |
|
|
14 |
<p>[% saved_message %]</p> |
|
15 |
|
|
16 |
[%- FOREACH key = HIDDENS %] |
|
17 |
<input type="hidden" name="[% HTML.escape(key) %]" value="[% HTML.escape($key) %]"> |
|
18 |
[%- END %] |
|
19 |
<input type="hidden" name="follow_up_trans_id_1" value="[% id %]"> |
|
20 |
<input type="hidden" name="follow_up_trans_type_1" value="sales_invoice"> |
|
21 |
<input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]"> |
|
22 |
<input type="hidden" name="follow_up_rowcount" value="1"> |
|
23 |
|
|
24 |
<input type="hidden" name="lizenzen" value="[% lizenzen %]"> |
|
25 |
|
|
26 |
<p><div class="listtop" width="100%">[% title %]</div></p> |
|
27 |
|
|
28 |
<table width="100%"> |
|
29 |
<tr> |
|
30 |
<td valign="top"> |
|
31 |
<table> |
|
32 |
<tr> |
|
33 |
<th align="right">Lieferant</th> |
|
34 |
<td> |
|
35 |
[%- INCLUDE 'generic/multibox.html' |
|
36 |
name = 'vendor', |
|
37 |
style = 'width: 250px', |
|
38 |
DATA = ALL_VENDORS, |
|
39 |
id_sub = 'vc_keys', |
|
40 |
label_key = 'name', |
|
41 |
select = vc_select, |
|
42 |
limit = vclimit, |
|
43 |
allow_textbox = 1, |
|
44 |
onChange = "document.getElementById('update_button').click();" -%] |
|
45 |
<input type="button" value="D" onclick="show_vc_details('[% vc | html %]')"> |
|
46 |
[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [ |
|
47 |
{ script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } }, |
|
48 |
] |
|
49 |
%] |
|
50 |
</td> |
|
51 |
<input type="hidden" name="vendor_klass" value="[% HTML.escape(vendor_klass) %]"> |
|
52 |
<input type="hidden" name="vendor_id" value="[% HTML.escape(vendor_id) %]"> |
|
53 |
<input type="hidden" name="oldvendor" value="[% HTML.escape(oldvendor) %]"> |
|
54 |
<input type="hidden" name="selectvendor" value="[% HTML.escape(selectvendor) %]"> |
|
55 |
</tr> |
|
56 |
[%- IF ALL_CONTACTS.size %] |
|
57 |
<tr> |
|
58 |
<th align="right">Ansprechpartner</th> |
|
59 |
<td> |
|
60 |
[%- INCLUDE 'generic/multibox.html' |
|
61 |
name = 'cp_id', |
|
62 |
style = 'width: 250px', |
|
63 |
DATA = ALL_CONTACTS, |
|
64 |
id_key = 'cp_id', |
|
65 |
label_sub = 'contact_labels', |
|
66 |
show_empty = 1 -%] |
|
67 |
</td> |
|
68 |
</tr> |
|
69 |
[%- END %] |
|
70 |
<tr> |
|
71 |
<td align="right">Kreditlimit</td> |
|
72 |
<td> |
|
73 |
[% LxERP.format_amount(creditlimit, 0, '0') %]; Rest |
|
74 |
<span class="plus[% IF is_credit_remaining_negativ %]0[% ELSE %]1[% END %]">[% LxERP.format_amount(creditremaining,0 ,'0') %]</span> |
|
75 |
</td> |
|
76 |
</tr> |
|
77 |
<tr> |
|
78 |
<th align="right" nowrap>Buchen auf</th> |
|
79 |
<td colspan="3"><select name="AP" style="width:250px;">[% selectAP %]</select></td> |
|
80 |
<input type="hidden" name="selectAP" value="[% selectAP %]"> |
|
81 |
</tr> |
|
82 |
<tr> |
|
83 |
<th align="right">Steuersatz</th> |
|
84 |
<td> |
|
85 |
[%- INCLUDE 'generic/multibox.html' |
|
86 |
name = 'taxzone_id' |
|
87 |
style = 'width: 250px' |
|
88 |
DATA = ALL_TAXZONES |
|
89 |
id_key = 'id' |
|
90 |
readonly = (id ? 1 : 0) |
|
91 |
label_key = 'description' -%] |
|
92 |
</td> |
|
93 |
[%- IF id %] |
|
94 |
<input type='hidden' name='taxzone_id' value='[% taxzone_id %]'> |
|
95 |
[%- END %] |
|
96 |
</tr> |
|
97 |
[%- IF all_departments %] |
|
98 |
<tr> |
|
99 |
<th align="right" nowrap>Abteilung</th> |
|
100 |
<td colspan="3"> |
|
101 |
[%- INCLUDE 'generic/multibox.html' |
|
102 |
name = 'department_id', |
|
103 |
style = 'width: 250px', |
|
104 |
DATA = all_departments, |
|
105 |
id_key = 'id', |
|
106 |
label_sub = 'department_labels', |
|
107 |
show_empty = 1 -%] |
|
108 |
</td> |
|
109 |
</tr> |
|
110 |
[%- END %] |
|
111 |
[%- IF currencies %] |
|
112 |
<tr> |
|
113 |
<th align="right">W?hrung</th> |
|
114 |
<td>[% currencies %]</td> |
|
115 |
</tr> |
|
116 |
[%- END %] |
|
117 |
<input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]"> |
|
118 |
<input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]"> |
|
119 |
[%- IF show_exchangerate %] |
|
120 |
<tr> |
|
121 |
<th align="right">Wechselkurs</th> |
|
122 |
<td> |
|
123 |
[%- IF forex %] |
|
124 |
[% LxERP.format_amount(exchangerate, 2) %] |
|
125 |
[%- ELSE %] |
|
126 |
<input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]"> |
|
127 |
[%- END %] |
|
128 |
</td> |
|
129 |
</tr> |
|
130 |
[%- END %] |
|
131 |
</table> |
|
132 |
</td> |
|
133 |
<td align="right" valign="top"> |
|
134 |
<table> |
|
135 |
<tr> |
|
136 |
<th align="right">Bearbeiter</th> |
|
137 |
<td> |
|
138 |
[%- INCLUDE 'generic/multibox.html' |
|
139 |
name = 'employee_id', |
|
140 |
DATA = ALL_EMPLOYEES, |
|
141 |
id_key = 'id', |
|
142 |
label_sub = 'sales_employee_labels' -%] |
|
143 |
</td> |
|
144 |
</tr> |
|
145 |
|
|
146 |
[%- IF is_type_credit_note %] |
|
147 |
<tr> |
|
148 |
<th align="right" nowrap>Gutschriftnummer</th> |
|
149 |
<td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td> |
|
150 |
</tr> |
|
151 |
<tr> |
|
152 |
<th align="right">Gutschriftdatum</th> |
|
153 |
<td nowrap> |
|
154 |
<input name="invdate" id="invdate" size="11" title="[% dateformat %]" value="[% invdate %]" onBlur="check_right_date_format(this)"> |
|
155 |
<input type="button" name="invdate_button" id="trigger1" value="?"> |
|
156 |
</td> |
|
157 |
</tr> |
|
158 |
[%- ELSE %] |
|
159 |
<tr> |
|
160 |
<th align="right" nowrap>Rechnungsnummer</th> |
|
161 |
<td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td> |
|
162 |
</tr> |
|
163 |
<tr> |
|
164 |
<th align="right">Rechnungsdatum</th> |
|
165 |
<td nowrap> |
|
166 |
<input name="invdate" id="invdate" size="11" title="[% dateformat %]" value="[% invdate %]" onBlur="check_right_date_format(this)"> |
|
167 |
<input type="button" name="invdate_button" id="trigger1" value="?"> |
|
168 |
</td> |
|
169 |
</tr> |
|
170 |
<tr> |
|
171 |
<th align="right">F?lligkeitsdatum</th> |
|
172 |
<td width="13"> |
|
173 |
<input name="duedate" id="duedate" size="11" title="[% dateformat %]" value="[% duedate %]" onBlur="check_right_date_format(this)"> |
|
174 |
<input type="button" name="duedate_button" id="trigger2" value="?"> |
|
175 |
</td> |
|
176 |
</tr> |
|
177 |
[%- END %] |
|
178 |
|
|
179 |
<tr> |
|
180 |
<th align="right" nowrap>Auftragsnummer</th> |
|
181 |
<td colspan="3"><input size='11' name="ordnumber" value="[% HTML.escape(ordnumber) %]"></td> |
|
182 |
</tr> |
|
183 |
<tr> |
|
184 |
<th align="right" nowrap>Auftragsdatum</th> |
|
185 |
<td><input name="orddate" id="orddate" size="11" title="[% dateformat %]" value="[% orddate %]" onBlur="check_right_date_format(this)"> |
|
186 |
<input type="button" name="b_orddate" id="trigger_orddate" value="?"></td> |
|
187 |
</tr> |
|
188 |
<tr> |
|
189 |
<th align="right" nowrap>Angebotsdatum</th> |
|
190 |
<td><input name="quodate" id="quodate" size="11" title="[% dateformat %]" value="[% quodate %]" onBlur="check_right_date_format(this)"> |
|
191 |
<input type="button" name="b_quodate" id="trigger_quodate" value="?"></td> |
|
192 |
</tr> |
|
193 |
<tr> |
|
194 |
<th align="right" nowrap>Projektnummer</th> |
|
195 |
<td> |
|
196 |
[%- INCLUDE 'generic/multibox.html' |
|
197 |
name = 'globalproject_id', |
|
198 |
DATA = ALL_PROJECTS, |
|
199 |
id_key = 'id', |
|
200 |
label_key = 'projectnumber', |
|
201 |
show_empty = 1, |
|
202 |
onChange = "document.getElementById('update_button').click();" -%] |
|
203 |
</td> |
|
204 |
</tr> |
|
205 |
</table> |
|
206 |
</td> |
|
207 |
</tr> |
|
208 |
</table> |
|
209 |
</td> |
|
210 |
</tr> |
|
211 |
<tr> |
|
212 |
<td> |
|
213 |
</td> |
|
214 |
</tr> |
|
215 |
<script type="text/javascript" src="js/show_form_details.js"></script> |
|
216 |
<script type="text/javascript" src="js/show_vc_details.js"></script> |
|
217 |
<script type="text/javascript" src="js/show_history.js"></script> |
|
218 |
<script type="text/javascript"> |
|
219 |
<!-- |
|
220 |
Calendar.setup({ inputField : "invdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" }); |
|
221 |
Calendar.setup({ inputField : "duedate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" }); |
|
222 |
Calendar.setup({ inputField : "orddate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_orddate" }); |
|
223 |
Calendar.setup({ inputField : "quodate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_quodate" }); |
|
224 |
$('document').ready(function(){ |
|
225 |
[% IF resubmit && is_format_html %] |
|
226 |
window.open('about:blank','Beleg'); |
|
227 |
document.invoice.target = 'Beleg'; |
|
228 |
document.invoice.submit(); |
|
229 |
[% ELSIF resubmit %] |
|
230 |
document.invoice.submit(); |
|
231 |
[% ELSIF creditwarning != '' %] |
|
232 |
alert('Kreditlimit ?berschritten!'); |
|
233 |
[% ELSE %] |
|
234 |
focus(); |
|
235 |
[% END %] |
|
236 |
setupDateFormat('[% dateformat %]', 'Falsches Datumsformat!'); |
|
237 |
setupPoints('[% numberformat %]', 'Falsches Format'); |
|
238 |
}); |
|
239 |
//--> |
|
240 |
</script> |
|
241 |
|
|
242 |
<input type="hidden" name="webdav" value="[% webdav %]"> |
templates/webpages/ir/form_header_master.html | ||
---|---|---|
1 |
[%- USE HTML %] |
|
2 |
[%- USE LxERP %] |
|
3 |
[%- SET follow_up_trans_info = invnumber _ ' (' _ vendor_name _ ')' %] |
|
4 |
<body> |
|
5 |
<script type="text/javascript" src="js/common.js"></script> |
|
6 |
<script type="text/javascript" src="js/delivery_vendor_selection.js"></script> |
|
7 |
<script type="text/javascript" src="js/vendor_selection.js"></script> |
|
8 |
<script type="text/javascript" src="js/calculate_qty.js"></script> |
|
9 |
<script type="text/javascript" src="js/follow_up.js"></script> |
|
10 |
<script type="text/javascript" src="js/customer_or_vendor_selection.js"></script> |
|
11 |
|
|
12 |
<form method="post" name="invoice" action="[% script %]"> |
|
13 |
|
|
14 |
<p>[% saved_message %]</p> |
|
15 |
|
|
16 |
[%- FOREACH key = HIDDENS %] |
|
17 |
<input type="hidden" name="[% HTML.escape(key) %]" value="[% HTML.escape($key) %]"> |
|
18 |
[%- END %] |
|
19 |
<input type="hidden" name="follow_up_trans_id_1" value="[% id %]"> |
|
20 |
<input type="hidden" name="follow_up_trans_type_1" value="sales_invoice"> |
|
21 |
<input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]"> |
|
22 |
<input type="hidden" name="follow_up_rowcount" value="1"> |
|
23 |
|
|
24 |
<input type="hidden" name="lizenzen" value="[% lizenzen %]"> |
|
25 |
|
|
26 |
<p><div class="listtop" width="100%">[% title %]</div></p> |
|
27 |
|
|
28 |
<table width="100%"> |
|
29 |
<tr> |
|
30 |
<td valign="top"> |
|
31 |
<table> |
|
32 |
<tr> |
|
33 |
<th align="right"><translate>Vendor</translate></th> |
|
34 |
<td> |
|
35 |
[%- INCLUDE 'generic/multibox.html' |
|
36 |
name = 'vendor', |
|
37 |
style = 'width: 250px', |
|
38 |
DATA = ALL_VENDORS, |
|
39 |
id_sub = 'vc_keys', |
|
40 |
label_key = 'name', |
|
41 |
select = vc_select, |
|
42 |
limit = vclimit, |
|
43 |
allow_textbox = 1, |
|
44 |
onChange = "document.getElementById('update_button').click();" -%] |
|
45 |
<input type="button" value="<translate>Details (one letter abbreviation)</translate>" onclick="show_vc_details('[% vc | html %]')"> |
|
46 |
[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [ |
|
47 |
{ script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } }, |
|
48 |
] |
|
49 |
%] |
|
50 |
</td> |
|
51 |
<input type="hidden" name="vendor_klass" value="[% HTML.escape(vendor_klass) %]"> |
|
52 |
<input type="hidden" name="vendor_id" value="[% HTML.escape(vendor_id) %]"> |
|
53 |
<input type="hidden" name="oldvendor" value="[% HTML.escape(oldvendor) %]"> |
|
54 |
<input type="hidden" name="selectvendor" value="[% HTML.escape(selectvendor) %]"> |
|
55 |
</tr> |
|
56 |
[%- IF ALL_CONTACTS.size %] |
|
57 |
<tr> |
|
58 |
<th align="right"><translate>Contact Person</translate></th> |
|
59 |
<td> |
|
60 |
[%- INCLUDE 'generic/multibox.html' |
|
61 |
name = 'cp_id', |
|
62 |
style = 'width: 250px', |
|
63 |
DATA = ALL_CONTACTS, |
|
64 |
id_key = 'cp_id', |
|
65 |
label_sub = 'contact_labels', |
|
66 |
show_empty = 1 -%] |
|
67 |
</td> |
|
68 |
</tr> |
|
69 |
[%- END %] |
|
70 |
<tr> |
|
71 |
<td align="right"><translate>Credit Limit</translate></td> |
|
72 |
<td> |
|
73 |
[% LxERP.format_amount(creditlimit, 0, '0') %]; <translate>Remaining</translate> |
|
74 |
<span class="plus[% IF is_credit_remaining_negativ %]0[% ELSE %]1[% END %]">[% LxERP.format_amount(creditremaining,0 ,'0') %]</span> |
|
75 |
</td> |
|
76 |
</tr> |
|
77 |
<tr> |
|
78 |
<th align="right" nowrap><translate>Record in</translate></th> |
|
79 |
<td colspan="3"><select name="AP" style="width:250px;">[% selectAP %]</select></td> |
|
80 |
<input type="hidden" name="selectAP" value="[% selectAP %]"> |
|
81 |
</tr> |
|
82 |
<tr> |
|
83 |
<th align="right"><translate>Steuersatz</translate></th> |
|
84 |
<td> |
|
85 |
[%- INCLUDE 'generic/multibox.html' |
|
86 |
name = 'taxzone_id' |
|
87 |
style = 'width: 250px' |
|
88 |
DATA = ALL_TAXZONES |
|
89 |
id_key = 'id' |
|
90 |
readonly = (id ? 1 : 0) |
|
91 |
label_key = 'description' -%] |
|
92 |
</td> |
|
93 |
[%- IF id %] |
|
94 |
<input type='hidden' name='taxzone_id' value='[% taxzone_id %]'> |
|
95 |
[%- END %] |
|
96 |
</tr> |
|
97 |
[%- IF all_departments %] |
|
98 |
<tr> |
|
99 |
<th align="right" nowrap><translate>Department</translate></th> |
|
100 |
<td colspan="3"> |
|
101 |
[%- INCLUDE 'generic/multibox.html' |
|
102 |
name = 'department_id', |
|
103 |
style = 'width: 250px', |
|
104 |
DATA = all_departments, |
|
105 |
id_key = 'id', |
|
106 |
label_sub = 'department_labels', |
|
107 |
show_empty = 1 -%] |
|
108 |
</td> |
|
109 |
</tr> |
|
110 |
[%- END %] |
|
111 |
[%- IF currencies %] |
|
112 |
<tr> |
|
113 |
<th align="right"><translate>Currency</translate></th> |
|
114 |
<td>[% currencies %]</td> |
|
115 |
</tr> |
|
116 |
[%- END %] |
|
117 |
<input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]"> |
|
118 |
<input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]"> |
|
119 |
[%- IF show_exchangerate %] |
|
120 |
<tr> |
|
121 |
<th align="right"><translate>Exchangerate</translate></th> |
|
122 |
<td> |
|
123 |
[%- IF forex %] |
|
124 |
[% LxERP.format_amount(exchangerate, 2) %] |
|
125 |
[%- ELSE %] |
|
126 |
<input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]"> |
|
127 |
[%- END %] |
|
128 |
</td> |
|
129 |
</tr> |
|
130 |
[%- END %] |
|
131 |
</table> |
|
132 |
</td> |
|
133 |
<td align="right" valign="top"> |
|
134 |
<table> |
|
135 |
<tr> |
|
136 |
<th align="right"><translate>Employee</translate></th> |
|
137 |
<td> |
|
138 |
[%- INCLUDE 'generic/multibox.html' |
|
139 |
name = 'employee_id', |
|
140 |
DATA = ALL_EMPLOYEES, |
|
141 |
id_key = 'id', |
|
142 |
label_sub = 'sales_employee_labels' -%] |
|
143 |
</td> |
|
144 |
</tr> |
|
145 |
|
|
146 |
[%- IF is_type_credit_note %] |
|
147 |
<tr> |
|
148 |
<th align="right" nowrap><translate>Credit Note Number</translate></th> |
|
149 |
<td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td> |
|
150 |
</tr> |
|
151 |
<tr> |
|
152 |
<th align="right"><translate>Credit Note Date</translate></th> |
|
153 |
<td nowrap> |
|
154 |
<input name="invdate" id="invdate" size="11" title="[% dateformat %]" value="[% invdate %]" onBlur="check_right_date_format(this)"> |
|
155 |
<input type="button" name="invdate_button" id="trigger1" value="<translate>button</translate>"> |
|
156 |
</td> |
|
157 |
</tr> |
|
158 |
[%- ELSE %] |
|
159 |
<tr> |
|
160 |
<th align="right" nowrap><translate>Invoice Number</translate></th> |
|
161 |
<td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td> |
|
162 |
</tr> |
|
163 |
<tr> |
|
164 |
<th align="right"><translate>Invoice Date</translate></th> |
|
165 |
<td nowrap> |
|
166 |
<input name="invdate" id="invdate" size="11" title="[% dateformat %]" value="[% invdate %]" onBlur="check_right_date_format(this)"> |
|
167 |
<input type="button" name="invdate_button" id="trigger1" value="<translate>button</translate>"> |
|
168 |
</td> |
|
169 |
</tr> |
|
170 |
<tr> |
|
171 |
<th align="right"><translate>Due Date</translate></th> |
|
172 |
<td width="13"> |
|
173 |
<input name="duedate" id="duedate" size="11" title="[% dateformat %]" value="[% duedate %]" onBlur="check_right_date_format(this)"> |
|
174 |
<input type="button" name="duedate_button" id="trigger2" value="<translate>button</translate>"> |
|
175 |
</td> |
|
176 |
</tr> |
|
177 |
[%- END %] |
|
178 |
|
|
179 |
<tr> |
|
180 |
<th align="right" nowrap><translate>Order Number</translate></th> |
|
181 |
<td colspan="3"><input size='11' name="ordnumber" value="[% HTML.escape(ordnumber) %]"></td> |
|
182 |
</tr> |
|
183 |
<tr> |
|
184 |
<th align="right" nowrap><translate>Order Date</translate></th> |
|
185 |
<td><input name="orddate" id="orddate" size="11" title="[% dateformat %]" value="[% orddate %]" onBlur="check_right_date_format(this)"> |
|
186 |
<input type="button" name="b_orddate" id="trigger_orddate" value="?"></td> |
|
187 |
</tr> |
|
188 |
<tr> |
|
189 |
<th align="right" nowrap><translate>Quotation Date</translate></th> |
|
190 |
<td><input name="quodate" id="quodate" size="11" title="[% dateformat %]" value="[% quodate %]" onBlur="check_right_date_format(this)"> |
|
191 |
<input type="button" name="b_quodate" id="trigger_quodate" value="?"></td> |
|
192 |
</tr> |
|
193 |
<tr> |
|
194 |
<th align="right" nowrap><translate>Project Number</translate></th> |
|
195 |
<td> |
|
196 |
[%- INCLUDE 'generic/multibox.html' |
|
197 |
name = 'globalproject_id', |
|
198 |
DATA = ALL_PROJECTS, |
|
199 |
id_key = 'id', |
|
200 |
label_key = 'projectnumber', |
|
201 |
show_empty = 1, |
|
202 |
onChange = "document.getElementById('update_button').click();" -%] |
|
203 |
</td> |
|
204 |
</tr> |
|
205 |
</table> |
|
206 |
</td> |
|
207 |
</tr> |
|
208 |
</table> |
|
209 |
</td> |
|
210 |
</tr> |
|
211 |
<tr> |
|
212 |
<td> |
|
213 |
</td> |
|
214 |
</tr> |
|
215 |
<script type="text/javascript" src="js/show_form_details.js"></script> |
|
216 |
<script type="text/javascript" src="js/show_vc_details.js"></script> |
|
217 |
<script type="text/javascript" src="js/show_history.js"></script> |
|
218 |
<script type="text/javascript"> |
|
219 |
<!-- |
|
220 |
Calendar.setup({ inputField : "invdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" }); |
|
221 |
Calendar.setup({ inputField : "duedate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" }); |
|
222 |
Calendar.setup({ inputField : "orddate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_orddate" }); |
|
223 |
Calendar.setup({ inputField : "quodate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_quodate" }); |
|
224 |
$('document').ready(function(){ |
|
225 |
[% IF creditwarning != '' %] |
|
226 |
alert('<translate>Credit Limit exceeded!!!</translate>'); |
|
227 |
[% ELSE %] |
|
228 |
focus(); |
|
229 |
[% END %] |
|
230 |
setupDateFormat('[% dateformat %]', '<translate>Falsches Datumsformat!</translate>'); |
|
231 |
setupPoints('[% numberformat %]', '<translate>wrongformat</translate>'); |
|
232 |
}); |
|
233 |
//--> |
|
234 |
</script> |
|
235 |
|
|
236 |
<input type="hidden" name="webdav" value="[% webdav %]"> |
Auch abrufbar als: Unified diff
ir: form_header auf Templates umgestellt.