X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Frc.pl;h=47344335fef4312463172af277532c9c1af415b4;hb=74e345d0723f81c5f6668f7dc532dbf2cd245f23;hp=12c87c4816ac43b95f18288ef6f04231bdb16f2d;hpb=be4e11d36f40d90622fdf35eb07ab207422b5455;p=kivitendo-erp.git diff --git a/bin/mozilla/rc.pl b/bin/mozilla/rc.pl index 12c87c481..47344335f 100644 --- a/bin/mozilla/rc.pl +++ b/bin/mozilla/rc.pl @@ -42,6 +42,8 @@ require "bin/mozilla/common.pl"; sub reconciliation { $lxdebug->enter_sub(); + $auth->assert('cash'); + RC->paymentaccounts(\%myconfig, \%$form); $selection = ""; @@ -96,10 +98,6 @@ sub reconciliation {
-{path}> -{login}> -{password}> - @@ -117,6 +115,8 @@ sub continue { call_sub($form->{"nextsub"}); } sub get_payments { $lxdebug->enter_sub(); + $auth->assert('cash'); + ($form->{accno}, $form->{account}) = split /--/, $form->{accno}; RC->payment_transactions(\%myconfig, \%$form); @@ -129,6 +129,8 @@ sub get_payments { sub display_form { $lxdebug->enter_sub(); + $auth->assert('cash'); + @column_index = qw(cleared transdate source name credit debit balance); $column_header{cleared} = " "; @@ -370,10 +372,6 @@ sub display_form { {fromdate}> {todate}> -{path}> -{login}> -{password}> -
@@ -394,6 +392,8 @@ sub display_form { sub update { $lxdebug->enter_sub(); + $auth->assert('cash'); + RC->payment_transactions(\%myconfig, \%$form); foreach $ref (@{ $form->{PR} }) { @@ -411,6 +411,8 @@ sub update { sub select_all { $lxdebug->enter_sub(); + $auth->assert('cash'); + RC->payment_transactions(\%myconfig, \%$form); map { $_->{cleared} = "checked" unless $_->{fx_transaction} } @@ -424,8 +426,9 @@ sub select_all { sub done { $lxdebug->enter_sub(); - $form->{callback} = - "$form->{script}?path=$form->{path}&action=reconciliation&login=$form->{login}&password=$form->{password}"; + $auth->assert('cash'); + + $form->{callback} = "$form->{script}?action=reconciliation"; $form->error($locale->text('Out of balance!')) if ($form->{difference} *= 1);