fix displaying invoices with credits, RT#23123, fallout from RT#21293
authorIvan Kohler <ivan@freeside.biz>
Thu, 16 May 2013 17:01:43 +0000 (10:01 -0700)
committerIvan Kohler <ivan@freeside.biz>
Thu, 16 May 2013 17:01:43 +0000 (10:01 -0700)
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),
         };
       }