Revision ddaf7f50
Von Sven Schöling vor etwa 15 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
1202 | 1202 |
sub search { |
1203 | 1203 |
$main::lxdebug->enter_sub(); |
1204 | 1204 |
|
1205 |
$main::auth->assert('general_ledger | invoice_edit'); |
|
1206 |
|
|
1205 | 1207 |
my $form = $main::form; |
1206 | 1208 |
my %myconfig = %main::myconfig; |
1207 | 1209 |
my $locale = $main::locale; |
1208 |
my $cgi = $main::cgi; |
|
1209 |
|
|
1210 |
$main::auth->assert('general_ledger | vendor_invoice_edit'); |
|
1211 | 1210 |
|
1212 |
# setup vendor selection
|
|
1211 |
# setup customer selection
|
|
1213 | 1212 |
$form->all_vc(\%myconfig, "vendor", "AP"); |
1214 | 1213 |
|
1215 |
my $vendor; |
|
1216 |
if (@{ $form->{all_vendor} || [] }) { |
|
1217 |
map { $vendor .= "<option>$_->{name}--$_->{id}\n" } |
|
1218 |
@{ $form->{all_vendor} }; |
|
1219 |
$vendor = qq|<select name=vendor><option>\n$vendor\n</select>|; |
|
1220 |
} else { |
|
1221 |
$vendor = qq|<input name=vendor size=35>|; |
|
1222 |
} |
|
1223 |
|
|
1224 |
# departments |
|
1225 |
if (@{ $form->{all_departments} || [] }) { |
|
1226 |
$form->{selectdepartment} = "<option>\n"; |
|
1227 |
|
|
1228 |
map { |
|
1229 |
$form->{selectdepartment} .= |
|
1230 |
"<option>$_->{description}--$_->{id}\n" |
|
1231 |
} (@{ $form->{all_departments} || [] }); |
|
1232 |
} |
|
1233 |
|
|
1234 |
my $department = qq| |
|
1235 |
<tr> |
|
1236 |
<th align=right nowrap>| . $locale->text('Department') . qq|</th> |
|
1237 |
<td colspan=3><select name=department>$form->{selectdepartment}</select></td> |
|
1238 |
</tr> |
|
1239 |
| if $form->{selectdepartment}; |
|
1240 |
|
|
1241 |
$form->{title} = $locale->text('AP Transactions'); |
|
1242 |
|
|
1243 |
# use JavaScript Calendar or not |
|
1214 |
$form->{title} = $locale->text('AP Transactions'); |
|
1215 |
$form->{fokus} = "search.vendor"; |
|
1244 | 1216 |
$form->{jsscript} = 1; |
1245 |
my $jsscript = ""; |
|
1246 |
my ($button1, $button2); |
|
1247 |
if ($form->{jsscript}) { |
|
1248 | 1217 |
|
1249 |
# with JavaScript Calendar |
|
1250 |
$button1 = qq| |
|
1251 |
<td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"> |
|
1252 |
<input type=button name=transdatefrom id="trigger1" value=| |
|
1253 |
. $locale->text('button') . qq|></td> |
|
1254 |
|; |
|
1255 |
$button2 = qq| |
|
1256 |
<td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"> |
|
1257 |
<input type=button name=transdateto name=transdateto id="trigger2" value=| |
|
1258 |
. $locale->text('button') . qq|></td> |
|
1259 |
|; |
|
1260 |
|
|
1261 |
#write Trigger |
|
1262 |
$jsscript = |
|
1263 |
Form->write_trigger(\%myconfig, "2", "transdatefrom", "BR", "trigger1", |
|
1264 |
"transdateto", "BL", "trigger2"); |
|
1265 |
} else { |
|
1266 |
|
|
1267 |
# without JavaScript Calendar |
|
1268 |
$button1 = qq| |
|
1269 |
<td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|; |
|
1270 |
$button2 = qq| |
|
1271 |
<td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|; |
|
1272 |
} |
|
1218 |
$form->get_lists("projects" => { "key" => "ALL_PROJECTS", "all" => 1 }, |
|
1219 |
"departments" => "ALL_DEPARTMENTS", |
|
1220 |
"vendors" => "ALL_VC"); |
|
1273 | 1221 |
|
1274 |
$form->get_lists("projects" => { "key" => "ALL_PROJECTS", |
|
1275 |
"all" => 1 }); |
|
1222 |
# constants and subs for template |
|
1223 |
$form->{jsscript} = 1; |
|
1224 |
$form->{vc_keys} = sub { "$_[0]->{name}--$_[0]->{id}" }; |
|
1276 | 1225 |
|
1277 |
my %labels = (); |
|
1278 |
my @values = (""); |
|
1279 |
foreach my $item (@{ $form->{"ALL_PROJECTS"} }) { |
|
1280 |
push(@values, $item->{"id"}); |
|
1281 |
$labels{$item->{"id"}} = $item->{"projectnumber"}; |
|
1282 |
} |
|
1283 |
my $projectnumber = |
|
1284 |
NTI($cgi->popup_menu('-name' => 'project_id', '-values' => \@values, |
|
1285 |
'-labels' => \%labels)); |
|
1286 |
$form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|; |
|
1287 | 1226 |
$form->header; |
1288 |
my $onload = qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|; |
|
1289 |
$onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|; |
|
1290 |
print qq| |
|
1291 |
<body onLoad="$onload"> |
|
1292 |
|
|
1293 |
<form method=post action=$form->{script}> |
|
1294 |
|
|
1295 |
<table width=100%> |
|
1296 |
<tr> |
|
1297 |
<th class=listtop>$form->{title}</th> |
|
1298 |
</tr> |
|
1299 |
<tr height="5"></tr> |
|
1300 |
<tr> |
|
1301 |
<td> |
|
1302 |
<table> |
|
1303 |
<tr> |
|
1304 |
<th align=right>| . $locale->text('Vendor') . qq|</th> |
|
1305 |
<td colspan=3>$vendor</td> |
|
1306 |
</tr> |
|
1307 |
$department |
|
1308 |
<tr> |
|
1309 |
<th align=right nowrap>| . $locale->text('Invoice Number') . qq|</th> |
|
1310 |
<td colspan=3><input name=invnumber size=20></td> |
|
1311 |
</tr> |
|
1312 |
<tr> |
|
1313 |
<th align=right nowrap>| . $locale->text('Order Number') . qq|</th> |
|
1314 |
<td colspan=3><input name=ordnumber size=20></td> |
|
1315 |
</tr> |
|
1316 |
<tr> |
|
1317 |
<th align=right nowrap>| . $locale->text('Notes') . qq|</th> |
|
1318 |
<td colspan=3><input name=notes size=40></td> |
|
1319 |
</tr> |
|
1320 |
<tr> |
|
1321 |
<th align="right">| . $locale->text("Project Number") . qq|</th> |
|
1322 |
<td colspan="3">$projectnumber</td> |
|
1323 |
</tr> |
|
1324 |
<tr> |
|
1325 |
<th align=right nowrap>| . $locale->text('From') . qq|</th> |
|
1326 |
$button1 |
|
1327 |
<th align=right>| . $locale->text('Bis') . qq|</th> |
|
1328 |
$button2 |
|
1329 |
</tr> |
|
1330 |
<input type=hidden name=sort value=transdate> |
|
1331 |
</table> |
|
1332 |
</td> |
|
1333 |
</tr> |
|
1334 |
<tr> |
|
1335 |
<td> |
|
1336 |
<table> |
|
1337 |
<tr> |
|
1338 |
<th align=right nowrap>| . $locale->text('Include in Report') . qq|</th> |
|
1339 |
<td> |
|
1340 |
<table width=100%> |
|
1341 |
<tr> |
|
1342 |
<td align=right><input name=open class=checkbox type=checkbox value=Y checked></td> |
|
1343 |
<td nowrap>| . $locale->text('Open') . qq|</td> |
|
1344 |
<td align=right><input name=closed class=checkbox type=checkbox value=Y></td> |
|
1345 |
<td nowrap>| . $locale->text('Closed') . qq|</td> |
|
1346 |
</tr> |
|
1347 |
<tr> |
|
1348 |
<td align=right><input name="l_id" class=checkbox type=checkbox value=Y></td> |
|
1349 |
<td nowrap>| . $locale->text('ID') . qq|</td> |
|
1350 |
<td align=right><input name="l_invnumber" class=checkbox type=checkbox value=Y checked></td> |
|
1351 |
<td nowrap>| . $locale->text('Invoice Number') . qq|</td> |
|
1352 |
<td align=right><input name="l_ordnumber" class=checkbox type=checkbox value=Y></td> |
|
1353 |
<td nowrap>| . $locale->text('Order Number') . qq|</td> |
|
1354 |
</tr> |
|
1355 |
<tr> |
|
1356 |
<td align=right><input name="l_name" class=checkbox type=checkbox value=Y checked></td> |
|
1357 |
<td nowrap>| . $locale->text('Vendor') . qq|</td> |
|
1358 |
<td align=right><input name="l_transdate" class=checkbox type=checkbox value=Y checked></td> |
|
1359 |
<td nowrap>| . $locale->text('Invoice Date') . qq|</td> |
|
1360 |
<td align=right><input name="l_netamount" class=checkbox type=checkbox value=Y></td> |
|
1361 |
<td nowrap>| . $locale->text('Amount') . qq|</td> |
|
1362 |
</tr> |
|
1363 |
<tr> |
|
1364 |
<td align=right><input name="l_tax" class=checkbox type=checkbox value=Y></td> |
|
1365 |
<td nowrap>| . $locale->text('Tax') . qq|</td> |
|
1366 |
<td align=right><input name="l_amount" class=checkbox type=checkbox value=Y checked></td> |
|
1367 |
<td nowrap>| . $locale->text('Total') . qq|</td> |
|
1368 |
<td align=right><input name="l_datepaid" class=checkbox type=checkbox value=Y></td> |
|
1369 |
<td nowrap>| . $locale->text('Date Paid') . qq|</td> |
|
1370 |
</tr> |
|
1371 |
<tr> |
|
1372 |
<td align=right><input name="l_paid" class=checkbox type=checkbox value=Y checked></td> |
|
1373 |
<td nowrap>| . $locale->text('Paid') . qq|</td> |
|
1374 |
<td align=right><input name="l_duedate" class=checkbox type=checkbox value=Y></td> |
|
1375 |
<td nowrap>| . $locale->text('Due Date') . qq|</td> |
|
1376 |
<td align=right><input name="l_due" class=checkbox type=checkbox value=Y></td> |
|
1377 |
<td nowrap>| . $locale->text('Amount Due') . qq|</td> |
|
1378 |
</tr> |
|
1379 |
<tr> |
|
1380 |
<td align=right><input name="l_notes" class=checkbox type=checkbox value=Y></td> |
|
1381 |
<td nowrap>| . $locale->text('Notes') . qq|</td> |
|
1382 |
<td align=right><input name="l_employee" class=checkbox type=checkbox value=Y></td> |
|
1383 |
<td nowrap>| . $locale->text('Employee') . qq|</td> |
|
1384 |
</tr> |
|
1385 |
<tr> |
|
1386 |
<td align=right><input name="l_subtotal" class=checkbox type=checkbox value=Y></td> |
|
1387 |
<td nowrap>| . $locale->text('Subtotal') . qq|</td> |
|
1388 |
<td align=right><input name="l_globalprojectnumber" class=checkbox type=checkbox value=Y></td> |
|
1389 |
<td nowrap>| . $locale->text('Project Number') . qq|</td> |
|
1390 |
</tr> |
|
1391 |
<tr> |
|
1392 |
<td colspan=4 align=left><b>| . $locale->text('Vendor') . qq| </td> |
|
1393 |
</tr> |
|
1394 |
<tr> |
|
1395 |
<td align=right><input name="l_vendornumber" class=checkbox type=checkbox value=Y></td> |
|
1396 |
<td nowrap>| . $locale->text('Vendor Number') . qq|</td> |
|
1397 |
<td align=right><input name="l_country" class=checkbox type=checkbox value=Y></td> |
|
1398 |
<td nowrap>| . $locale->text('Country') . qq|</td> |
|
1399 |
<td align=right><input name="l_ustid" class=checkbox type=checkbox value=Y></td> |
|
1400 |
<td nowrap>| . $locale->text('USt-IdNr.') . qq|</td> |
|
1401 |
<td align=right><input name="l_taxzone" class=checkbox type=checkbox value=Y></td> |
|
1402 |
<td nowrap>| . $locale->text('Steuersatz') . qq|</td> |
|
1403 |
</tr> |
|
1404 |
<tr> |
|
1405 |
<td align=right><input name="l_payment_terms" class=checkbox type=checkbox value=Y></td> |
|
1406 |
<td nowrap>| . $locale->text('Payment Terms') . qq|</td> |
|
1407 |
<td align=right><input name="l_charts" class=checkbox type=checkbox value=Y></td> |
|
1408 |
<td nowrap>| . $locale->text('Buchungskonto') . qq|</td> |
|
1409 |
</tr> |
|
1410 |
</table> |
|
1411 |
</td> |
|
1412 |
</tr> |
|
1413 |
</table> |
|
1414 |
</td> |
|
1415 |
</tr> |
|
1416 |
<tr> |
|
1417 |
<td><hr size=3 noshade></td> |
|
1418 |
</tr> |
|
1419 |
</table> |
|
1420 |
|
|
1421 |
$jsscript |
|
1422 |
|
|
1423 |
<br> |
|
1424 |
<input type=hidden name=nextsub value=$form->{nextsub}> |
|
1425 |
|
|
1426 |
<input class=submit type=submit name=action value="| |
|
1427 |
. $locale->text('Continue') . qq|"> |
|
1428 |
</form> |
|
1429 |
|
|
1430 |
</body> |
|
1431 |
</html> |
|
1432 |
|; |
|
1227 |
print $form->parse_html_template('ap/search', { %myconfig }); |
|
1433 | 1228 |
|
1434 | 1229 |
$main::lxdebug->leave_sub(); |
1435 | 1230 |
} |
templates/webpages/ap/search_de.html | ||
---|---|---|
1 |
<body> |
|
2 |
|
|
3 |
<form method=post name="search" action=[% script %]> |
|
4 |
|
|
5 |
<table width=100%> |
|
6 |
<tr><th class=listtop>[% title %]</th></tr> |
|
7 |
<tr height="5"></tr> |
|
8 |
<tr> |
|
9 |
<td> |
|
10 |
<table> |
|
11 |
<tr> |
|
12 |
<th align=right>Lieferant</th> |
|
13 |
<td colspan=3> |
|
14 |
[%- INCLUDE 'generic/multibox.html' |
|
15 |
name = 'vendor', |
|
16 |
default = oldvendor, |
|
17 |
style = 'width: 250px', |
|
18 |
DATA = ALL_VC, |
|
19 |
id_sub = 'vc_keys', |
|
20 |
label_key = 'name', |
|
21 |
select = vc_select, |
|
22 |
limit = vclimit, |
|
23 |
show_empty = 1, |
|
24 |
allow_textbox = 1, |
|
25 |
-%] |
|
26 |
[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [ |
|
27 |
{ script => 'ct.pl', column => 'name', selector => 'input[name="vendor"]', params => { vc => 'vendor' } }, |
|
28 |
] |
|
29 |
%] |
|
30 |
</td> |
|
31 |
</tr> |
|
32 |
<tr> |
|
33 |
<th align=right nowrap>Abteilung</th> |
|
34 |
<td> |
|
35 |
[%- INCLUDE 'generic/multibox.html' |
|
36 |
name = 'department', |
|
37 |
style = 'width: 250px', |
|
38 |
DATA = ALL_DEPARTMENTS, |
|
39 |
id_key = 'id', |
|
40 |
label_key = 'description', |
|
41 |
show_empty = 1, |
|
42 |
allow_textbox = 0, |
|
43 |
-%] |
|
44 |
</td> |
|
45 |
</tr> |
|
46 |
<tr> |
|
47 |
<th align=right nowrap>Rechnungsnummer</th> |
|
48 |
<td colspan=3><input name=invnumber size=20></td> |
|
49 |
</tr> |
|
50 |
<tr> |
|
51 |
<th align=right nowrap>Auftragsnummer</th> |
|
52 |
<td colspan=3><input name=ordnumber size=20></td> |
|
53 |
</tr> |
|
54 |
<tr> |
|
55 |
<th align=right nowrap>Bemerkungen</th> |
|
56 |
<td colspan=3><input name=notes size=40></td> |
|
57 |
</tr> |
|
58 |
<tr> |
|
59 |
<th align="right">Projektnummer</th> |
|
60 |
<td colspan="3"> |
|
61 |
[%- INCLUDE 'generic/multibox.html' |
|
62 |
name = 'project_id', |
|
63 |
style = "width: 250px", |
|
64 |
DATA = ALL_PROJECTS, |
|
65 |
id_key = 'id', |
|
66 |
label_key = 'projectnumber', |
|
67 |
limit = vclimit, |
|
68 |
show_empty = 1, |
|
69 |
allow_textbox = 0, |
|
70 |
-%] |
|
71 |
</td> |
|
72 |
</tr> |
|
73 |
<tr> |
|
74 |
<th align=right nowrap>Von</th> |
|
75 |
<td> |
|
76 |
<input name=transdatefrom id=transdatefrom size=11 title="dateformat | html %]" onBlur=\"check_right_date_format(this)\"> |
|
77 |
<input type=button name=transdatefrom id="trigger1" value=?> |
|
78 |
</td> |
|
79 |
<th align=right>bis</th> |
|
80 |
<td> |
|
81 |
<input name=transdateto id=transdateto size=11 title="[% dateformat | html %]" onBlur=\"check_right_date_format(this)\"> |
|
82 |
<input type=button name=transdateto name=transdateto id="trigger2" value=?> |
|
83 |
</td> |
|
84 |
</tr> |
|
85 |
<input type=hidden name=sort value=transdate> |
|
86 |
</table> |
|
87 |
</td> |
|
88 |
</tr> |
|
89 |
<tr> |
|
90 |
<td> |
|
91 |
<table> |
|
92 |
<tr> |
|
93 |
<th align=right nowrap>In Bericht aufnehmen</th> |
|
94 |
<td> |
|
95 |
<table width=100%> |
|
96 |
<tr> |
|
97 |
<td align=right><input name=open class=checkbox type=checkbox value=Y checked></td> |
|
98 |
<td nowrap>Offen</td> |
|
99 |
<td align=right><input name=closed class=checkbox type=checkbox value=Y></td> |
|
100 |
<td nowrap>Geschlossen</td> |
|
101 |
</tr> |
|
102 |
<tr> |
|
103 |
<td align=right><input name="l_id" class=checkbox type=checkbox value=Y></td> |
|
104 |
<td nowrap>Buchungsnummer</td> |
|
105 |
<td align=right><input name="l_invnumber" class=checkbox type=checkbox value=Y checked></td> |
|
106 |
<td nowrap>Rechnungsnummer</td> |
|
107 |
<td align=right><input name="l_ordnumber" class=checkbox type=checkbox value=Y></td> |
|
108 |
<td nowrap>Auftragsnummer</td> |
|
109 |
</tr> |
|
110 |
<tr> |
|
111 |
<td align=right><input name="l_name" class=checkbox type=checkbox value=Y checked></td> |
|
112 |
<td nowrap>Lieferant</td> |
|
113 |
<td align=right><input name="l_transdate" class=checkbox type=checkbox value=Y checked></td> |
|
114 |
<td nowrap>Rechnungsdatum</td> |
|
115 |
<td align=right><input name="l_netamount" class=checkbox type=checkbox value=Y></td> |
|
116 |
<td nowrap>Betrag</td> |
|
117 |
</tr> |
|
118 |
<tr> |
|
119 |
<td align=right><input name="l_tax" class=checkbox type=checkbox value=Y></td> |
|
120 |
<td nowrap>Steuer</td> |
|
121 |
<td align=right><input name="l_amount" class=checkbox type=checkbox value=Y checked></td> |
|
122 |
<td nowrap>Summe</td> |
|
123 |
<td align=right><input name="l_datepaid" class=checkbox type=checkbox value=Y></td> |
|
124 |
<td nowrap>Zahlungsdatum</td> |
|
125 |
</tr> |
|
126 |
<tr> |
|
127 |
<td align=right><input name="l_paid" class=checkbox type=checkbox value=Y checked></td> |
|
128 |
<td nowrap>bezahlt</td> |
|
129 |
<td align=right><input name="l_duedate" class=checkbox type=checkbox value=Y></td> |
|
130 |
<td nowrap>F?lligkeitsdatum</td> |
|
131 |
<td align=right><input name="l_due" class=checkbox type=checkbox value=Y></td> |
|
132 |
<td nowrap>Betrag f?llig</td> |
|
133 |
</tr> |
|
134 |
<tr> |
|
135 |
<td align=right><input name="l_notes" class=checkbox type=checkbox value=Y></td> |
|
136 |
<td nowrap>Bemerkungen</td> |
|
137 |
<td align=right><input name="l_employee" class=checkbox type=checkbox value=Y></td> |
|
138 |
<td nowrap>Bearbeiter</td> |
|
139 |
</tr> |
|
140 |
<tr> |
|
141 |
<td align=right><input name="l_subtotal" class=checkbox type=checkbox value=Y></td> |
|
142 |
<td nowrap>Zwischensumme</td> |
|
143 |
<td align=right><input name="l_globalprojectnumber" class=checkbox type=checkbox value=Y></td> |
|
144 |
<td nowrap>Projektnummer</td> |
|
145 |
</tr> |
|
146 |
<tr> |
|
147 |
<td colspan=4 align=left><b>Lieferant </td> |
|
148 |
</tr> |
|
149 |
<tr> |
|
150 |
<td align=right><input name="l_vendornumber" class=checkbox type=checkbox value=Y></td> |
|
151 |
<td nowrap>Lieferantennummer</td> |
|
152 |
<td align=right><input name="l_country" class=checkbox type=checkbox value=Y></td> |
|
153 |
<td nowrap>Land</td> |
|
154 |
<td align=right><input name="l_ustid" class=checkbox type=checkbox value=Y></td> |
|
155 |
<td nowrap>USt-IdNr.</td> |
|
156 |
<td align=right><input name="l_taxzone" class=checkbox type=checkbox value=Y></td> |
|
157 |
<td nowrap>Steuersatz</td> |
|
158 |
</tr> |
|
159 |
<tr> |
|
160 |
<td align=right><input name="l_payment_terms" class=checkbox type=checkbox value=Y></td> |
|
161 |
<td nowrap>Zahlungskonditionen</td> |
|
162 |
<td align=right><input name="l_charts" class=checkbox type=checkbox value=Y></td> |
|
163 |
<td nowrap>Buchungskonto</td> |
|
164 |
</tr> |
|
165 |
</table> |
|
166 |
</td> |
|
167 |
</tr> |
|
168 |
</table> |
|
169 |
</td> |
|
170 |
</tr> |
|
171 |
<tr> |
|
172 |
<td><hr size=3 noshade></td> |
|
173 |
</tr> |
|
174 |
</table> |
|
175 |
<input type=hidden name=nextsub value=[% nextsub %]> |
|
176 |
<br> |
|
177 |
<input class=submit type=submit name=action value="Weiter"> |
|
178 |
</form> |
|
179 |
</body> |
|
180 |
<script type="text/javascript"> |
|
181 |
<!-- |
|
182 |
Calendar.setup( { inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" }); |
|
183 |
Calendar.setup( { inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" }); |
|
184 |
$(document).ready(function(){ |
|
185 |
focus(); |
|
186 |
setupDateFormat('[% dateformat | html %]','Falsches Datumsformat!'); |
|
187 |
setupPoints('[% numberformat | html %]','Falsches Format'); |
|
188 |
}) |
|
189 |
//--> |
|
190 |
</script> |
|
191 |
</html> |
templates/webpages/ap/search_master.html | ||
---|---|---|
1 |
<body> |
|
2 |
|
|
3 |
<form method=post name="search" action=[% script %]> |
|
4 |
|
|
5 |
<table width=100%> |
|
6 |
<tr><th class=listtop>[% title %]</th></tr> |
|
7 |
<tr height="5"></tr> |
|
8 |
<tr> |
|
9 |
<td> |
|
10 |
<table> |
|
11 |
<tr> |
|
12 |
<th align=right><translate>Vendor</translate></th> |
|
13 |
<td colspan=3> |
|
14 |
[%- INCLUDE 'generic/multibox.html' |
|
15 |
name = 'vendor', |
|
16 |
default = oldvendor, |
|
17 |
style = 'width: 250px', |
|
18 |
DATA = ALL_VC, |
|
19 |
id_sub = 'vc_keys', |
|
20 |
label_key = 'name', |
|
21 |
select = vc_select, |
|
22 |
limit = vclimit, |
|
23 |
show_empty = 1, |
|
24 |
allow_textbox = 1, |
|
25 |
-%] |
|
26 |
[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [ |
|
27 |
{ script => 'ct.pl', column => 'name', selector => 'input[name="vendor"]', params => { vc => 'vendor' } }, |
|
28 |
] |
|
29 |
%] |
|
30 |
</td> |
|
31 |
</tr> |
|
32 |
<tr> |
|
33 |
<th align=right nowrap><translate>Department</translate></th> |
|
34 |
<td> |
|
35 |
[%- INCLUDE 'generic/multibox.html' |
|
36 |
name = 'department', |
|
37 |
style = 'width: 250px', |
|
38 |
DATA = ALL_DEPARTMENTS, |
|
39 |
id_key = 'id', |
|
40 |
label_key = 'description', |
|
41 |
show_empty = 1, |
|
42 |
allow_textbox = 0, |
|
43 |
-%] |
|
44 |
</td> |
|
45 |
</tr> |
|
46 |
<tr> |
|
47 |
<th align=right nowrap><translate>Invoice Number</translate></th> |
|
48 |
<td colspan=3><input name=invnumber size=20></td> |
|
49 |
</tr> |
|
50 |
<tr> |
|
51 |
<th align=right nowrap><translate>Order Number</translate></th> |
|
52 |
<td colspan=3><input name=ordnumber size=20></td> |
|
53 |
</tr> |
|
54 |
<tr> |
|
55 |
<th align=right nowrap><translate>Notes</translate></th> |
|
56 |
<td colspan=3><input name=notes size=40></td> |
|
57 |
</tr> |
|
58 |
<tr> |
|
59 |
<th align="right"><translate>Project Number</translate></th> |
|
60 |
<td colspan="3"> |
|
61 |
[%- INCLUDE 'generic/multibox.html' |
|
62 |
name = 'project_id', |
|
63 |
style = "width: 250px", |
|
64 |
DATA = ALL_PROJECTS, |
|
65 |
id_key = 'id', |
|
66 |
label_key = 'projectnumber', |
|
67 |
limit = vclimit, |
|
68 |
show_empty = 1, |
|
69 |
allow_textbox = 0, |
|
70 |
-%] |
|
71 |
</td> |
|
72 |
</tr> |
|
73 |
<tr> |
|
74 |
<th align=right nowrap><translate>From</translate></th> |
|
75 |
<td> |
|
76 |
<input name=transdatefrom id=transdatefrom size=11 title="dateformat | html %]" onBlur=\"check_right_date_format(this)\"> |
|
77 |
<input type=button name=transdatefrom id="trigger1" value=<translate>button</translate>> |
|
78 |
</td> |
|
79 |
<th align=right><translate>Bis</translate></th> |
|
80 |
<td> |
|
81 |
<input name=transdateto id=transdateto size=11 title="[% dateformat | html %]" onBlur=\"check_right_date_format(this)\"> |
|
82 |
<input type=button name=transdateto name=transdateto id="trigger2" value=<translate>button</translate>> |
|
83 |
</td> |
|
84 |
</tr> |
|
85 |
<input type=hidden name=sort value=transdate> |
|
86 |
</table> |
|
87 |
</td> |
|
88 |
</tr> |
|
89 |
<tr> |
|
90 |
<td> |
|
91 |
<table> |
|
92 |
<tr> |
|
93 |
<th align=right nowrap><translate>Include in Report</translate></th> |
|
94 |
<td> |
|
95 |
<table width=100%> |
|
96 |
<tr> |
|
97 |
<td align=right><input name=open class=checkbox type=checkbox value=Y checked></td> |
|
98 |
<td nowrap><translate>Open</translate></td> |
|
99 |
<td align=right><input name=closed class=checkbox type=checkbox value=Y></td> |
|
100 |
<td nowrap><translate>Closed</translate></td> |
|
101 |
</tr> |
|
102 |
<tr> |
|
103 |
<td align=right><input name="l_id" class=checkbox type=checkbox value=Y></td> |
|
104 |
<td nowrap><translate>ID</translate></td> |
|
105 |
<td align=right><input name="l_invnumber" class=checkbox type=checkbox value=Y checked></td> |
|
106 |
<td nowrap><translate>Invoice Number</translate></td> |
|
107 |
<td align=right><input name="l_ordnumber" class=checkbox type=checkbox value=Y></td> |
|
108 |
<td nowrap><translate>Order Number</translate></td> |
|
109 |
</tr> |
|
110 |
<tr> |
|
111 |
<td align=right><input name="l_name" class=checkbox type=checkbox value=Y checked></td> |
|
112 |
<td nowrap><translate>Vendor</translate></td> |
|
113 |
<td align=right><input name="l_transdate" class=checkbox type=checkbox value=Y checked></td> |
|
114 |
<td nowrap><translate>Invoice Date</translate></td> |
|
115 |
<td align=right><input name="l_netamount" class=checkbox type=checkbox value=Y></td> |
|
116 |
<td nowrap><translate>Amount</translate></td> |
|
117 |
</tr> |
|
118 |
<tr> |
|
119 |
<td align=right><input name="l_tax" class=checkbox type=checkbox value=Y></td> |
|
120 |
<td nowrap><translate>Tax</translate></td> |
|
121 |
<td align=right><input name="l_amount" class=checkbox type=checkbox value=Y checked></td> |
|
122 |
<td nowrap><translate>Total</translate></td> |
|
123 |
<td align=right><input name="l_datepaid" class=checkbox type=checkbox value=Y></td> |
|
124 |
<td nowrap><translate>Date Paid</translate></td> |
|
125 |
</tr> |
|
126 |
<tr> |
|
127 |
<td align=right><input name="l_paid" class=checkbox type=checkbox value=Y checked></td> |
|
128 |
<td nowrap><translate>Paid</translate></td> |
|
129 |
<td align=right><input name="l_duedate" class=checkbox type=checkbox value=Y></td> |
|
130 |
<td nowrap><translate>Due Date</translate></td> |
|
131 |
<td align=right><input name="l_due" class=checkbox type=checkbox value=Y></td> |
|
132 |
<td nowrap><translate>Amount Due</translate></td> |
|
133 |
</tr> |
|
134 |
<tr> |
|
135 |
<td align=right><input name="l_notes" class=checkbox type=checkbox value=Y></td> |
|
136 |
<td nowrap><translate>Notes</translate></td> |
|
137 |
<td align=right><input name="l_employee" class=checkbox type=checkbox value=Y></td> |
|
138 |
<td nowrap><translate>Employee</translate></td> |
|
139 |
</tr> |
|
140 |
<tr> |
|
141 |
<td align=right><input name="l_subtotal" class=checkbox type=checkbox value=Y></td> |
|
142 |
<td nowrap><translate>Subtotal</translate></td> |
|
143 |
<td align=right><input name="l_globalprojectnumber" class=checkbox type=checkbox value=Y></td> |
|
144 |
<td nowrap><translate>Project Number</translate></td> |
|
145 |
</tr> |
|
146 |
<tr> |
|
147 |
<td colspan=4 align=left><b><translate>Vendor</translate> </td> |
|
148 |
</tr> |
|
149 |
<tr> |
|
150 |
<td align=right><input name="l_vendornumber" class=checkbox type=checkbox value=Y></td> |
|
151 |
<td nowrap><translate>Vendor Number</translate></td> |
|
152 |
<td align=right><input name="l_country" class=checkbox type=checkbox value=Y></td> |
|
153 |
<td nowrap><translate>Country</translate></td> |
|
154 |
<td align=right><input name="l_ustid" class=checkbox type=checkbox value=Y></td> |
|
155 |
<td nowrap><translate>USt-IdNr.</translate></td> |
|
156 |
<td align=right><input name="l_taxzone" class=checkbox type=checkbox value=Y></td> |
|
157 |
<td nowrap><translate>Steuersatz</translate></td> |
|
158 |
</tr> |
|
159 |
<tr> |
|
160 |
<td align=right><input name="l_payment_terms" class=checkbox type=checkbox value=Y></td> |
|
161 |
<td nowrap><translate>Payment Terms</translate></td> |
|
162 |
<td align=right><input name="l_charts" class=checkbox type=checkbox value=Y></td> |
|
163 |
<td nowrap><translate>Buchungskonto</translate></td> |
|
164 |
</tr> |
|
165 |
</table> |
|
166 |
</td> |
|
167 |
</tr> |
|
168 |
</table> |
|
169 |
</td> |
|
170 |
</tr> |
|
171 |
<tr> |
|
172 |
<td><hr size=3 noshade></td> |
|
173 |
</tr> |
|
174 |
</table> |
|
175 |
<input type=hidden name=nextsub value=[% nextsub %]> |
|
176 |
<br> |
|
177 |
<input class=submit type=submit name=action value="<translate>Continue</translate>"> |
|
178 |
</form> |
|
179 |
</body> |
|
180 |
<script type="text/javascript"> |
|
181 |
<!-- |
|
182 |
Calendar.setup( { inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" }); |
|
183 |
Calendar.setup( { inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" }); |
|
184 |
$(document).ready(function(){ |
|
185 |
focus(); |
|
186 |
setupDateFormat('[% dateformat | html %]','<translate>Falsches Datumsformat!</translate>'); |
|
187 |
setupPoints('[% numberformat | html %]','<translate>wrongformat</translate>'); |
|
188 |
}) |
|
189 |
//--> |
|
190 |
</script> |
|
191 |
</html> |
Auch abrufbar als: Unified diff
Einkaufsrechnungen Suche -> Templates