Revision 3cecb906
Von Sven Schöling vor etwa 15 Jahren hinzugefügt
bin/mozilla/ct.pl | ||
---|---|---|
714 | 714 |
$main::lxdebug->leave_sub(); |
715 | 715 |
} |
716 | 716 |
|
717 |
sub ajax_autocomplete { |
|
718 |
$main::lxdebug->enter_sub(); |
|
719 |
|
|
720 |
my $form = $main::form; |
|
721 |
my %myconfig = %main::myconfig; |
|
722 |
|
|
723 |
$form->{column} = 'name' unless $form->{column} =~ /^name$/; |
|
724 |
$form->{vc} = 'customer' unless $form->{vc} =~ /^customer|vendor$/; |
|
725 |
$form->{db} = $form->{vc}; # CT expects this |
|
726 |
$form->{$form->{column}} = $form->{q} || ''; |
|
727 |
$form->{limit} = ($form->{limit} * 1) || 10; |
|
728 |
$form->{searchitems} ||= ''; |
|
729 |
|
|
730 |
CT->search(\%myconfig, $form); |
|
731 |
|
|
732 |
print $form->ajax_response_header(), |
|
733 |
$form->parse_html_template('ct/ajax_autocomplete'); |
|
734 |
|
|
735 |
$main::lxdebug->leave_sub(); |
|
736 |
} |
|
737 |
|
|
717 | 738 |
sub continue { call_sub($main::form->{nextsub}); } |
locale/de/ct | ||
---|---|---|
213 | 213 |
'Q' => 'Q', |
214 | 214 |
'add' => 'add', |
215 | 215 |
'add_transaction' => 'add_transaction', |
216 |
'ajax_autocomplete' => 'ajax_autocomplete', |
|
216 | 217 |
'ap_transaction' => 'ap_transaction', |
217 | 218 |
'ar_transaction' => 'ar_transaction', |
218 | 219 |
'build_std_url' => 'build_std_url', |
Auch abrufbar als: Unified diff
ajax_autocomplete für Kunden/Lieferanten.