RT# 82988 - Fixed so only formats that can handle electronic refunds can download...
[freeside.git] / httemplate / view / cust_main / menu.html
index dcba1fb..63d5c9a 100644 (file)
   text-decoration: none;
 }
 
-#customer_menu ul a {
+#customer_menu ul a,
+#customer_menu ul form {
   background: transparent;
+  border: none;
 }
 
 </style>
@@ -459,6 +461,16 @@ my @menu = (
         #  acl         => ['Post refund' ],
         ##  condition   => sub { $payby{MCHK} },
         #},
+        {
+           label       => 'Enter electronic check refund',
+           popup       => "edit/cust_refund.cgi?popup=1;payby=CHEK;custnum=$custnum",
+           actionlabel => 'Enter electronic check refund',
+           width       => 440,
+           acl         => ['Post refund' ],
+           condition   => sub {
+             FS::pay_batch->can_handle_electronic_refunds
+           },
+        },
 
       ],