X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fcommon.pl;h=b661c34dce81d89518607058db80bed521b11f32;hb=fc490063361896eb3b2aa0939fc0df716ae38262;hp=38297576ddb9e3265434cd5c2d0863d628447975;hpb=40782548cf82ac1e4c0fe417113a4cb3072e9390;p=kivitendo-erp.git diff --git a/bin/mozilla/common.pl b/bin/mozilla/common.pl index 38297576d..b661c34dc 100644 --- a/bin/mozilla/common.pl +++ b/bin/mozilla/common.pl @@ -47,7 +47,7 @@ sub build_std_url { my $url = "$form->{script}?"; my $first = 1; - foreach my $key ((qw(login password path), @_)) { + foreach my $key ((qw(login password), @_)) { next unless ($key); $url .= "&" unless ($first); $first = 0; @@ -563,4 +563,24 @@ sub call_sub { $lxdebug->leave_sub(); } +sub show_vc_details { + $lxdebug->enter_sub(); + + $form->{vc} = $form->{vc} eq "customer" ? "customer" : "vendor"; + $form->isblank("vc_id", + $form->{vc} eq "customer" ? + $locale->text("No customer has been selected yet.") : + $locale->text("No vendor has been selected yet.")); + + Common->get_vc_details(\%myconfig, $form, $form->{vc}, $form->{vc_id}); + + $form->{title} = $form->{vc} eq "customer" ? + $locale->text("Customer details") : $locale->text("Vendor details"); + $form->header(); + print($form->parse_html_template("common/show_vc_details", + { "is_customer" => $form->{vc} eq "customer" })); + + $lxdebug->leave_sub(); +} + 1;