[freeside-commits] freeside/httemplate/edit/process cust_credit_bill.cgi, 1.5, 1.6

Ivan,,, ivan at wavetail.420.am
Fri Dec 9 08:58:42 PST 2005


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail:/tmp/cvs-serv17839/httemplate/edit/process

Modified Files:
	cust_credit_bill.cgi 
Log Message:
fill in reason if empty when applying a credit to a refund

Index: cust_credit_bill.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/cust_credit_bill.cgi,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- cust_credit_bill.cgi	5 Apr 2002 20:52:59 -0000	1.5
+++ cust_credit_bill.cgi	9 Dec 2005 16:58:40 -0000	1.6
@@ -14,11 +14,12 @@
 my $new;
 if ($cgi->param('invnum') =~ /^Refund$/) {
   $new = new FS::cust_refund ( {
-    'reason'  => $cust_credit->reason,
+    'reason'  => ( $cust_credit->reason || 'refund from credit' ),
     'refund'  => $cgi->param('amount'),
     'payby'   => 'BILL',
     #'_date'   => $cgi->param('_date'),
-    'payinfo' => 'Cash',
+    #'payinfo' => 'Cash',
+    'payinfo' => 'Refund',
     'crednum' => $crednum,
   } );
 } else {



More information about the freeside-commits mailing list