X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history%2Fvoided_payment.html;h=a8194a75f8ddc63f181cd8e597ad7feca656b20f;hb=359004f4f4091e9789cb6e23a97c8eb89256d0b2;hp=88b5e0a84265003b9157f471af0879dc009d8436;hpb=430b2c784d2ee9ea5be00b821d2dbd27279ef132;p=freeside.git diff --git a/httemplate/view/cust_main/payment_history/voided_payment.html b/httemplate/view/cust_main/payment_history/voided_payment.html index 88b5e0a84..a8194a75f 100644 --- a/httemplate/view/cust_main/payment_history/voided_payment.html +++ b/httemplate/view/cust_main/payment_history/voided_payment.html @@ -11,8 +11,6 @@ my( $cust_pay_void, %opt ) = @_; my $date_format = $opt{'date_format'} || '%m/%d/%Y'; -my $curuser = $FS::CurrentUser::CurrentUser; - my ($payby,$payinfo) = translate_payinfo($cust_pay_void); $payby = translate_payby($payby,$payinfo); my $info = $payby ? "($payby$payinfo)" : ''; @@ -31,6 +29,6 @@ $unvoid = areyousure_link("${p}misc/unvoid-cust_pay_void.cgi?".$cust_pay_void->p emt('Unvoid this payment from the database') . $unvoidmsg, emt('unvoid') ) - if ( $cust_pay_void->closed !~ /^Y/i && $curuser->access_right('Unvoid payments') ); + if $cust_pay_void->closed !~ /^Y/i && $opt{'Unvoid payments'};