X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_credit.cgi;h=b6924f4d93523e35e69004794b757ec5e2fd2379;hb=22c7daa1fd079e3ec9dee4da241f83e174132e4e;hp=aae0df2fc1e64ebe1f6aced384b412c735706fa8;hpb=5fc8c5edf574ab024d4646914b6432d458e2ffbd;p=freeside.git diff --git a/httemplate/edit/cust_credit.cgi b/httemplate/edit/cust_credit.cgi index aae0df2fc..b6924f4d9 100755 --- a/httemplate/edit/cust_credit.cgi +++ b/httemplate/edit/cust_credit.cgi @@ -1,7 +1,57 @@ - -<% +<% include('/elements/header-popup.html', 'Enter Credit') %> +% if ( $cgi->param('error') ) { + Error: <% $cgi->param('error') %> +

+% } + +
+ + + + + + + +Credit +<% ntable("#cccccc", 2) %> + + + Date + <% time2str("%D",$_date) %> + + + + Amount + $ + + +% +%#print qq! Also post refund!; +% + +<% include('/elements/tr-select-reason.html', 'reasonnum', 'R', '', '', '', 'document.credit_popup.submit',) %> + + + Auto-apply
to invoices + + + + + +
+ +
+ +
+ + + +<%once> my $conf = new FS::Conf; + + +<%init> my($custnum, $amount, $reason); if ( $cgi->param('error') ) { #$cust_credit = new FS::cust_credit ( { @@ -24,40 +74,4 @@ my $_date = time; my $otaker = getotaker; my $p1 = popurl(1); - -print header("Post Credit", ''); -print qq!Error: !, $cgi->param('error'), - "" - if $cgi->param('error'); -print <config('countrydefault')); -
- - - - - - -END - -print '

Credit'. ntable("#cccccc", 2). - 'Date'. - time2str("%D",$_date). ''; - -print qq!Amount\$!; - -#print qq! Also post refund!; - -print qq!Reason!; - -print qq!Auto-apply
to invoices!; - -print < -
- - - - -END - -%> +