X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fir.pl;h=caa8a0e6d511c2dbd70931afccb2d7adbbb583b9;hb=32ebe005ef3be63e188a653c7a831a39eb0f8e63;hp=f6df8494ba2ad69230f6c984ab28a53a41e5b97a;hpb=4dbb09950c9f5596646537c12d991c99086fe7c1;p=kivitendo-erp.git diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index f6df8494b..caa8a0e6d 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -31,32 +31,28 @@ # #====================================================================== - use SL::IR; use SL::PE; - require "$form->{path}/io.pl"; require "$form->{path}/arap.pl"; 1; -# end of main - +# end of main sub add { $lxdebug->enter_sub(); - +print STDERR "ir.pl-add\n"; $form->{title} = $locale->text('Add Vendor Invoice'); &invoice_links; &prepare_invoice; &display_form; - + $lxdebug->leave_sub(); } - sub edit { $lxdebug->enter_sub(); @@ -65,20 +61,19 @@ sub edit { &invoice_links; &prepare_invoice; &display_form; - + $lxdebug->leave_sub(); } - sub invoice_links { $lxdebug->enter_sub(); - +print STDERR "ir.pl-invoice_links\n"; # create links $form->{webdav} = $webdav; - + # set jscalendar $form->{jscalendar} = $jscalendar; - + $form->create_links("AP", \%myconfig, "vendor"); if ($form->{all_vendor}) { @@ -86,12 +81,12 @@ sub invoice_links { $form->{vendor_id} = $form->{all_vendor}->[0]->{id}; } } - + $cp_id = $form->{cp_id}; IR->get_vendor(\%myconfig, \%$form); IR->retrieve_invoice(\%myconfig, \%$form); $form->{cp_id} = $cp_id; - + # currencies @curr = split /:/, $form->{currencies}; chomp $curr[0]; @@ -104,21 +99,25 @@ sub invoice_links { # vendors if ($form->{all_vendor}) { $form->{vendor} = "$form->{vendor}--$form->{vendor_id}"; - map { $form->{selectvendor} .= "