summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/cust_credit_bill.cgi
diff options
context:
space:
mode:
authorivan <ivan>2005-12-09 16:58:40 +0000
committerivan <ivan>2005-12-09 16:58:40 +0000
commit54c73b7ed85f88ef688f68ef8e1b0961dec14f0c (patch)
treeffdc7d3298042538276b2aa13f019d56d959c12b /httemplate/edit/process/cust_credit_bill.cgi
parent88c42d0423368bf52d593021f704bfa38845ff71 (diff)
fill in reason if empty when applying a credit to a refund
Diffstat (limited to 'httemplate/edit/process/cust_credit_bill.cgi')
-rwxr-xr-xhttemplate/edit/process/cust_credit_bill.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/edit/process/cust_credit_bill.cgi b/httemplate/edit/process/cust_credit_bill.cgi
index 23e2e6ce5..28f892f62 100755
--- a/httemplate/edit/process/cust_credit_bill.cgi
+++ b/httemplate/edit/process/cust_credit_bill.cgi
@@ -14,11 +14,12 @@ my $custnum = $cust_main->custnum;
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 {