X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fcp.pl;h=721a4a8cf9d1b95697ef3bc718fb8807120bfa92;hb=c9902d7658d0cacdf665971b32de0e054637efd0;hp=1fa5d34c6fa34c4431c74ab0e4de132a632b19cf;hpb=545d8542873ac7cb75ed71771a1bd384fe57bfe2;p=kivitendo-erp.git diff --git a/bin/mozilla/cp.pl b/bin/mozilla/cp.pl index 1fa5d34c6..721a4a8cf 100644 --- a/bin/mozilla/cp.pl +++ b/bin/mozilla/cp.pl @@ -34,6 +34,8 @@ use SL::CP; use SL::IS; use SL::IR; +use SL::AR; +use SL::AP; use strict ("vars", "subs"); #use warnings; @@ -48,6 +50,7 @@ our ($form, %myconfig, $lxdebug, $locale, $auth); sub payment { $lxdebug->enter_sub(); + $auth->assert('cash'); my (@curr); @@ -57,6 +60,8 @@ sub payment { # setup customer/vendor selection for open invoices if ($form->{all_vc}) { + # Dieser Zweig funktioniert derzeit NIE. Ggf. ganz raus oder + # alle offenen Zahlungen wieder korrekt anzeigen. jb 12.10.2010 $form->all_vc(\%myconfig, $form->{vc}, $form->{ARAP}); } else { CP->get_openvc(\%myconfig, \%$form); @@ -65,34 +70,38 @@ sub payment { $form->{"select$form->{vc}"} = ""; if ($form->{"all_$form->{vc}"}) { + # s.o. jb 12.10.2010 $form->{"$form->{vc}_id"} = $form->{"all_$form->{vc}"}->[0]->{id}; map { $form->{"select$form->{vc}"} .= "