Revision 6988b41a
Von Sven Schöling vor etwa 15 Jahren hinzugefügt
bin/mozilla/io.pl | ||
---|---|---|
372 | 372 |
$form->{invsubtotal} += $linetotal; |
373 | 373 |
|
374 | 374 |
# Benutzerdefinierte Variablen für Waren/Dienstleistungen/Erzeugnisse |
375 |
_render_custom_variables_inputs(ROW2 => \@ROW2, row => $i); |
|
375 |
_render_custom_variables_inputs(ROW2 => \@ROW2, row => $i, part_id => $form->{"id_$i"});
|
|
376 | 376 |
|
377 | 377 |
push @ROWS, { ROW1 => \@ROW1, ROW2 => \@ROW2, HIDDENS => \@HIDDENS, colspan => $colspan, error => $form->{"row_error_$i"}, }; |
378 | 378 |
} |
... | ... | |
1980 | 1980 |
} |
1981 | 1981 |
|
1982 | 1982 |
foreach my $cvar (@{ $form->{CVAR_CONFIGS}->{IC} }) { |
1983 |
$cvar->{valid} = $params{part_id} |
|
1984 |
? CVar->get_custom_variables_validity(config_id => $cvar->{id}, trans_id => $params{part_id}) |
|
1985 |
: $vcar->{valid}; |
|
1986 |
|
|
1983 | 1987 |
$cvar->{value} = $form->{"ic_cvar_" . $cvar->{name} . "_$params{row}"}; |
1984 | 1988 |
} |
1985 | 1989 |
|
... | ... | |
1991 | 1995 |
my $num_visible_cvars = 0; |
1992 | 1996 |
foreach my $cvar (@{ $form->{CVAR_CONFIGS}->{IC} }) { |
1993 | 1997 |
my $description = ''; |
1994 |
if ($cvar->{flag_editable}) { |
|
1998 |
if ($cvar->{flag_editable} && $cvar->{valid}) {
|
|
1995 | 1999 |
$num_visible_cvars++; |
1996 | 2000 |
$description = $cvar->{description} . ' '; |
1997 | 2001 |
} |
Auch abrufbar als: Unified diff
Ungültige Custom Variablen in der Verkaufsmaske ausblenden.