1375 |
1375 |
<td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}"></td>|;
|
1376 |
1376 |
}
|
1377 |
1377 |
|
|
1378 |
$form->get_lists("projects" => { "key" => "ALL_PROJECTS",
|
|
1379 |
"all" => 1 });
|
|
1380 |
|
|
1381 |
my %labels = ();
|
|
1382 |
my @values = ("");
|
|
1383 |
foreach my $item (@{ $form->{"ALL_PROJECTS"} }) {
|
|
1384 |
push(@values, $item->{"id"});
|
|
1385 |
$labels{$item->{"id"}} = $item->{"projectnumber"};
|
|
1386 |
}
|
|
1387 |
my $projectnumber =
|
|
1388 |
NTI($cgi->popup_menu('-name' => 'project_id', '-values' => \@values,
|
|
1389 |
'-labels' => \%labels));
|
|
1390 |
|
1378 |
1391 |
$form->header;
|
1379 |
1392 |
|
1380 |
1393 |
print qq|
|
... | ... | |
1399 |
1412 |
<th align=right>$ordlabel</th>
|
1400 |
1413 |
<td colspan=3><input name="$ordnumber" size=20></td>
|
1401 |
1414 |
</tr>
|
|
1415 |
<tr>
|
|
1416 |
<th align="right">| . $locale->text("Project Number") . qq|</th>
|
|
1417 |
<td colspan="3">$projectnumber</td>
|
|
1418 |
</tr>
|
1402 |
1419 |
<tr>
|
1403 |
1420 |
<th align=right>| . $locale->text('From') . qq|</th>
|
1404 |
1421 |
$button1
|
... | ... | |
1426 |
1443 |
<td><input name="l_employee" class=checkbox type=checkbox value=Y checked> $employee</td>
|
1427 |
1444 |
<td><input name="l_shipvia" class=checkbox type=checkbox value=Y> |
|
1428 |
1445 |
. $locale->text('Ship via') . qq|</td>
|
|
1446 |
<td><input name="l_employee" class=checkbox type=checkbox value=Y checked> $employee</td>
|
1429 |
1447 |
</tr>
|
1430 |
1448 |
<tr>
|
1431 |
1449 |
<td><input name="l_netamount" class=checkbox type=checkbox value=Y> |
|
... | ... | |
1434 |
1452 |
. $locale->text('Tax') . qq|</td>
|
1435 |
1453 |
<td><input name="l_amount" class=checkbox type=checkbox value=Y checked> |
|
1436 |
1454 |
. $locale->text('Total') . qq|</td>
|
|
1455 |
<td><input name="l_globalprojectnumber" class=checkbox type=checkbox value=Y> |
|
|
1456 |
. $locale->text('Project Number') . qq|</td>
|
1437 |
1457 |
</tr>
|
1438 |
1458 |
<tr>
|
1439 |
1459 |
<td><input name="l_subtotal" class=checkbox type=checkbox value=Y> |
|
... | ... | |
1499 |
1519 |
@columns =
|
1500 |
1520 |
$form->sort_columns("transdate", "reqdate", "id", "$ordnumber",
|
1501 |
1521 |
"name", "netamount", "tax", "amount",
|
1502 |
|
"curr", "employee", "shipvia", "open",
|
1503 |
|
"closed", "delivered");
|
|
1522 |
"curr", "employee", "shipvia", "globalprojectnumber",
|
|
1523 |
"open", "closed", "delivered");
|
1504 |
1524 |
|
1505 |
1525 |
$form->{l_open} = $form->{l_closed} = "Y"
|
1506 |
1526 |
if ($form->{open} && $form->{closed});
|
... | ... | |
1584 |
1604 |
qq|<th><a class=listheading href=$href&sort=shipvia>|
|
1585 |
1605 |
. $locale->text('Ship via')
|
1586 |
1606 |
. qq|</a></th>|;
|
|
1607 |
$column_header{globalprojectnumber} =
|
|
1608 |
qq|<th class="listheading">| . $locale->text('Project Number') . qq|</th>|;
|
1587 |
1609 |
$column_header{open} =
|
1588 |
1610 |
qq|<th class=listheading>| . $locale->text('O') . qq|</th>|;
|
1589 |
1611 |
$column_header{closed} =
|
... | ... | |
1700 |
1722 |
|
1701 |
1723 |
$column_data{employee} = "<td>$oe->{employee} </td>";
|
1702 |
1724 |
$column_data{shipvia} = "<td>$oe->{shipvia} </td>";
|
|
1725 |
$column_data{globalprojectnumber} = "<td>" . H($oe->{globalprojectnumber}) . "</td>";
|
1703 |
1726 |
|
1704 |
1727 |
if ($oe->{closed}) {
|
1705 |
1728 |
$column_data{closed} = "<td align=center>X</td>";
|
Bei Berichtsfunktion nach Projekten suchen und sich Projekte ausgeben lassen (bisher nur OE; IR und IS folgen).