X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Farap.pl;h=08cdc3be28695df54d12e2c5ae9e30e3562ed58b;hb=8cef58b276ce4005c0e2ada350fecd5d7a103e89;hp=b17b061da7563d2cdfd73764bc960b00d12baa5a;hpb=948670d8301d5c6285f454baf11dd344c8762c5b;p=kivitendo-erp.git diff --git a/bin/mozilla/arap.pl b/bin/mozilla/arap.pl index b17b061da..08cdc3be2 100644 --- a/bin/mozilla/arap.pl +++ b/bin/mozilla/arap.pl @@ -40,6 +40,8 @@ if (-f "$form->{path}/$form->{login}_arap.pl") { 1; +require "bin/mozilla/common.pl"; + # end of main sub check_name { @@ -47,6 +49,8 @@ sub check_name { my ($name) = @_; + $name = $name eq "customer" ? "customer" : "vendor"; + my ($new_name, $new_id) = split /--/, $form->{$name}; my $i = 0; # if we use a selection @@ -443,7 +447,7 @@ sub project_selected { map { delete $form->{$_} } qw(ndx lastndx nextsub is_global); if ($form->{update}) { - &{ $form->{update} }; + call_sub($form->{"update"}); } else { &update; } @@ -451,7 +455,7 @@ sub project_selected { $lxdebug->leave_sub(); } -sub continue { &{ $form->{nextsub} } } +sub continue { call_sub($form->{"nextsub"}); } sub gl_transaction { &add } sub ar_transaction { &add_transaction('ar') } sub ap_transaction { &add_transaction('ap') }