X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fir.pl;h=ddf5796b15e660e67a0d8a3ab56eb6af36a8e19d;hb=34a2b6e126453ce49f5ccf0c7c1d2245a8ff8c42;hp=cd4591d26d152cc64adb58dc1be5666ca5bce3a0;hpb=43e56b936a7b6f799bac548de484b2881428f9f5;p=kivitendo-erp.git diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index cd4591d26..ddf5796b1 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -35,6 +35,7 @@ use SL::FU; use SL::IR; use SL::IS; use SL::PE; +use SL::DB::Default; use List::Util qw(max sum); require "bin/mozilla/io.pl"; @@ -100,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"); @@ -116,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}; } @@ -129,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); @@ -147,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} .= "