Revision 4bbf708c
Von Jan Büren vor mehr als 15 Jahren hinzugefügt
bin/mozilla/ic.pl | ||
---|---|---|
1464 | 1464 |
map { $form->{$_} =~ s/"/"/g; } qw(unit); |
1465 | 1465 |
|
1466 | 1466 |
$form->get_lists('price_factors' => 'ALL_PRICE_FACTORS', |
1467 |
'partsgroup' => 'all_partsgroup'); |
|
1467 |
'partsgroup' => 'all_partsgroup', |
|
1468 |
'vendors' => 'ALL_VENDORS',); |
|
1469 |
|
|
1468 | 1470 |
|
1469 | 1471 |
IC->retrieve_buchungsgruppen(\%myconfig, $form); |
1470 | 1472 |
@{ $form->{BUCHUNGSGRUPPEN} } = grep { $_->{id} eq $form->{buchungsgruppen_id} || ($form->{id} && $form->{orphaned}) || !$form->{id} } @{ $form->{BUCHUNGSGRUPPEN} }; |
... | ... | |
1478 | 1480 |
$form->{fokus} = "ic.partnumber"; |
1479 | 1481 |
|
1480 | 1482 |
$form->header; |
1481 |
print $form->parse_html_template('ic/form_header', { ALL_PRICE_FACTORS => $form->{ALL_PRICE_FACTORS}, |
|
1482 |
ALL_UNITS => $form->{ALL_UNITS}, |
|
1483 |
BUCHUNGSGRUPPEN => $form->{BUCHUNGSGRUPPEN}, |
|
1484 |
payment_terms => $form->{payment_terms}, |
|
1485 |
all_partsgroup => $form->{all_partsgroup}}); |
|
1483 |
#print $form->parse_html_template('ic/form_header', { ALL_PRICE_FACTORS => $form->{ALL_PRICE_FACTORS}, |
|
1484 |
# ALL_UNITS => $form->{ALL_UNITS}, |
|
1485 |
# BUCHUNGSGRUPPEN => $form->{BUCHUNGSGRUPPEN}, |
|
1486 |
# payment_terms => $form->{payment_terms}, |
|
1487 |
# all_partsgroup => $form->{all_partsgroup}}); |
|
1488 |
print $form->parse_html_template('ic/form_header'); |
|
1486 | 1489 |
$lxdebug->leave_sub(); |
1487 | 1490 |
} |
1488 | 1491 |
|
... | ... | |
1501 | 1504 |
my ($numrows) = @_; |
1502 | 1505 |
|
1503 | 1506 |
my @mm_data = grep { any { $_ ne '' } @$_{qw(make model)} } map +{ make => $form->{"make_$_"}, model => $form->{"model_$_"} }, 1 .. $numrows; |
1507 |
delete @{$form}{grep { m/^make_\d+/ || m/^model_\d+/ } keys %{ $form }}; |
|
1504 | 1508 |
print $form->parse_html_template('ic/makemodel', { MM_DATA => [ @mm_data, {} ], mm_rows => scalar @mm_data + 1 }); |
1505 | 1509 |
|
1506 | 1510 |
$lxdebug->leave_sub(); |
Auch abrufbar als: Unified diff
Backport von Revision 7581 von XPlace. Hintergrund: Hersteller und Modell sind derzeit Freitextfelder, in der Regel möchte man Lieferanten und die entsprechenden Lieferanten-Art.-Nr. abbilden. Am liebsten noch mit Lieferanten-Art-Preis. Dazu vielleicht nach der 2.6 mehr