fix displaying invoices with credits, RT#23123, fallout from RT#21293
[freeside.git] / FS / FS / Template_Mixin.pm
index ad49ac8..b3d3cf2 100644 (file)
@@ -647,7 +647,7 @@ sub print_generic {
         push @credits, {
             '_date'       => $cust_credit->_date,
             'date'        => time2str($date_format, $cust_credit->_date),
-            'creditreason'=> $cust_credit->cust_credit->reason,
+            'creditreason'=> $cust_credit->reason,
             'amount'      => sprintf('%.2f', $cust_credit->amount),
         };
       }