Revision 2536b717
Von Sven Schöling vor mehr als 10 Jahren hinzugefügt
SL/Form.pm | ||
---|---|---|
2365 | 2365 |
my $dbh = $self->get_standard_dbh(\%main::myconfig); |
2366 | 2366 |
my ($sth, $query, $ref); |
2367 | 2367 |
|
2368 |
my $vc = $self->{"vc"} eq "customer" ? "customer" : "vendor"; |
|
2369 |
my $vc_id = $self->{"${vc}_id"}; |
|
2368 |
my ($vc, $vc_id); |
|
2369 |
if ($params{contacts} || $params{shipto}) { |
|
2370 |
$vc = 'customer' if $self->{"vc"} eq "customer"; |
|
2371 |
$vc = 'vendor' if $self->{"vc"} eq "vendor"; |
|
2372 |
die "invalid use of get_lists, need 'vc'"; |
|
2373 |
$vc_id = $self->{"${vc}_id"}; |
|
2374 |
} |
|
2370 | 2375 |
|
2371 | 2376 |
if ($params{"contacts"}) { |
2372 | 2377 |
$self->_get_contacts($dbh, $vc_id, $params{"contacts"}); |
Auch abrufbar als: Unified diff
2 Warnungen in den Tests beseitigen