X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=members%2Fprintfeercpt.pl;h=b94fe7f29f1664516899a730e226011d70928d11;hb=4458ac5764126049d95e115adeacd1f335efdb8f;hp=6a86bc3762e8a708357308f1d9889a21ebb7db5f;hpb=50e25d212a0298910a5b4322b475df550985fbea;p=koha_fer diff --git a/members/printfeercpt.pl b/members/printfeercpt.pl index 6a86bc3762..b94fe7f29f 100755 --- a/members/printfeercpt.pl +++ b/members/printfeercpt.pl @@ -41,7 +41,7 @@ my ($template, $loggedinuser, $cookie) query => $input, type => "intranet", authnotrequired => 0, - flagsrequired => {borrowers => 1, updatecharges => 1}, + flagsrequired => {borrowers => 1, updatecharges => 'remaining_permissions'}, debug => 1, }); @@ -99,7 +99,7 @@ for (my $i=0;$i<$numaccts;$i++){ 'amount' => sprintf("%.2f",$accts->[$i]{'amount'}), 'amountoutstanding' => sprintf("%.2f",$accts->[$i]{'amountoutstanding'}), 'accountno' => $accts->[$i]{'accountno'}, - 'payment' => ( $accts->[$i]{'accounttype'} eq 'Pay' ), + 'payment' => ( $accts->[$i]{'accounttype'} =~ /^Pay/ ), );