X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_credit_bill.cgi;h=59a74b279c063a3f1f6b995e746f65993a210e9f;hb=53547a802d5c76be967cc14301fc8a692f0fe066;hp=409ea3c254e98a2e0c39235055e3abf8404d93c7;hpb=2c757d7db4cb6a7b9655de13206fcc84fb7ce61f;p=freeside.git
diff --git a/httemplate/edit/cust_credit_bill.cgi b/httemplate/edit/cust_credit_bill.cgi
index 409ea3c25..59a74b279 100755
--- a/httemplate/edit/cust_credit_bill.cgi
+++ b/httemplate/edit/cust_credit_bill.cgi
@@ -1,77 +1,34 @@
-<%
+<% include('/elements/header-popup.html', 'Apply Credit') %>
-my($crednum, $amount, $invnum);
-if ( $cgi->param('error') ) {
- #$cust_credit_bill = new FS::cust_credit_bill ( {
- # map { $_, scalar($cgi->param($_)) } fields('cust_credit_bill')
- #} );
- $crednum = $cgi->param('crednum');
- $amount = $cgi->param('amount');
- #$refund = $cgi->param('refund');
- $invnum = $cgi->param('invnum');
-} else {
- my($query) = $cgi->keywords;
- $query =~ /^(\d+)$/;
- $crednum = $1;
- $amount = '';
- #$refund = 'yes';
- $invnum = '';
-}
+<% include('/elements/error.html') %>
-my $otaker = getotaker;
-
-my $p1 = popurl(1);
-
-%><%= header("Apply Credit", '') %>
-
-<% if ( $cgi->param('error') ) { %>
- Error: <%= $cgi->param('error') %>
-
-<% } %>
+