X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fir.pl;h=ddf5796b15e660e67a0d8a3ab56eb6af36a8e19d;hb=34a2b6e126453ce49f5ccf0c7c1d2245a8ff8c42;hp=3f67961acbb33b7294a375f30a544dd8230431ec;hpb=56f7991d4910ae12c7d16aab025a2ab242ca5eeb;p=kivitendo-erp.git diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 3f67961ac..ddf5796b1 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -101,8 +101,7 @@ sub invoice_links { $form->{vc} = 'vendor'; # create links - $form->{webdav} = $::lx_office_conf{features}->{webdav}; - $form->{jsscript} = 1; + $form->{webdav} = $::instance_conf->get_webdav; $form->create_links("AP", \%myconfig, "vendor"); @@ -117,7 +116,7 @@ sub invoice_links { } } - my ($payment_id, $language_id, $taxzone_id, $currency); + my ($payment_id, $language_id, $taxzone_id, $currency, $delivery_term_id, $intnotes); if ($form->{payment_id}) { $payment_id = $form->{payment_id}; } @@ -130,6 +129,12 @@ sub invoice_links { if ($form->{currency}) { $currency = $form->{currency}; } + if ($form->{delivery_term_id}) { + $delivery_term_id = $form->{delivery_term_id}; + } + if (exists $form->{intnotes}) { + $intnotes = $form->{intnotes}; + } my $cp_id = $form->{cp_id}; IR->get_vendor(\%myconfig, \%$form); @@ -148,8 +153,14 @@ sub invoice_links { if ($currency) { $form->{currency} = $currency; } + if ($delivery_term_id) { + $form->{delivery_term_id} = $delivery_term_id; + } + if (defined $intnotes) { + $form->{intnotes} = $intnotes; + } - my @curr = split(/:/, $form->{currencies}); #seems to be missing + my @curr = $form->get_all_currencies(); map { $form->{selectcurrency} .= "