X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fir.pl;h=264100e743b151ccd980ae0ee008b301bca22668;hb=5f0d47eb2561ba03f64b70fbaf7d1d41485d33fe;hp=f6df8494ba2ad69230f6c984ab28a53a41e5b97a;hpb=4dbb09950c9f5596646537c12d991c99086fe7c1;p=kivitendo-erp.git diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index f6df8494b..264100e74 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -31,18 +31,15 @@ # #====================================================================== - 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(); @@ -52,11 +49,10 @@ sub add { &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(); # 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} .= "