X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_credit.cgi;h=36109cf5d8c89924a5014e8f0eda437bf778b766;hb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;hp=aae0df2fc1e64ebe1f6aced384b412c735706fa8;hpb=b8cfd0780aa40bb07f3215bf9cb58011f5e32a35;p=freeside.git diff --git a/httemplate/edit/cust_credit.cgi b/httemplate/edit/cust_credit.cgi index aae0df2fc..36109cf5d 100755 --- a/httemplate/edit/cust_credit.cgi +++ b/httemplate/edit/cust_credit.cgi @@ -1,7 +1,63 @@ - -<% +<% include('/elements/header-popup.html', 'Enter Credit') %> + +<% include('/elements/error.html') %> + +
+ + + + + + + +Credit +<% ntable("#cccccc", 2) %> + + + Date + <% time2str("%D",$_date) %> + + + + Amount + $ + + +% +%#print qq! Also post refund!; +% + +<% include('/elements/tr-select-reason.html', + 'field' => 'reasonnum', + 'reason_class' => 'R', + 'control_button' => 'document.credit_popup.submit', + ) +%> + + + Auto-apply
to invoices + + + + + +
+ +
+ +
+ + +<%once> my $conf = new FS::Conf; + + +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Post credit'); + my($custnum, $amount, $reason); if ( $cgi->param('error') ) { #$cust_credit = new FS::cust_credit ( { @@ -25,39 +81,4 @@ 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 - -%> +