X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Felements%2FApplicationCommon.html;h=a531eaad4963cb751a90ed5777d78662967cca95;hb=11bbf29de447fe39e9d7155fe280a0df70fa8c3c;hp=7b1050adeb64749a29d49cddfd4fadd985efd202;hpb=624b2d44625f69d71175c3348cae635d580c890b;p=freeside.git diff --git a/httemplate/edit/elements/ApplicationCommon.html b/httemplate/edit/elements/ApplicationCommon.html index 7b1050ade..a531eaad4 100644 --- a/httemplate/edit/elements/ApplicationCommon.html +++ b/httemplate/edit/elements/ApplicationCommon.html @@ -3,46 +3,45 @@ Examples: #cust_bill_pay - include('elements/ApplicationCommon.html', - 'form_action' => 'process/cust_bill_pay.cgi', + <& elements/ApplicationCommon.html, + 'form_action' => 'process/cust_bill_pay.cgi, 'src_table' => 'cust_pay', 'src_thing' => 'payment', 'dst_table' => 'cust_bill', 'dst_thing' => 'invoice', - ) + &> #cust_credit_bill - include('elements/ApplicationCommon.html', - 'form_action' => 'process/cust_credit_bill.cgi', + <& elements/ApplicationCommon.html', + 'form_action' => 'process/cust_credit_bill.cgi, 'src_table' => 'cust_credit', 'src_thing' => 'credit', 'dst_table' => 'cust_bill', 'dst_thing' => 'invoice', - ) + &> #cust_pay_refund - include('elements/ApplicationCommon.html', - 'form_action' => 'process/cust_pay_refund.cgi', + <& elements/ApplicationCommon.html', + 'form_action' => 'process/cust_pay_refund.cgi, 'src_table' => 'cust_pay', 'src_thing' => 'payment', 'dst_table' => 'cust_refund', 'dst_thing' => 'refund', - ) + &> #cust_credit_refund - include('elements/ApplicationCommon.html', + <& elements/ApplicationCommon.html, 'form_action' => 'process/cust_credit_refund.cgi', 'src_table' => 'cust_credit', 'src_thing' => 'credit', 'dst_table' => 'cust_refund', 'dst_thing' => 'refund', - ) + &> +<& /elements/header-popup.html, "Apply $src_thing$to", '', 'onLoad="myOnLoadFunction();"' &> -<% include('/elements/header-popup.html', "Apply $src_thing$to", '', 'onLoad="myOnLoadFunction();"') %> - -<% include('/elements/error.html') %> +<& /elements/error.html &>

@@ -158,6 +157,7 @@ function changed(what) { % } % $desc .= ' (default)'; % } +% $total_owed = sprintf('%.2f', $total_owed + 0.00000001 ); #so 1.005 rounds to 1.01 % if ( $total_owed > 0 ) { <% &{$row_generator}($key, $cbp, $desc, $total_owed, $amount, '') %> % } @@ -212,11 +212,10 @@ Apply to: -<% include( '/elements/xmlhttp.html', +<& /elements/xmlhttp.html, 'url' => $p.'misc/xmlhttp-calculate_taxes.html', 'subs' => [ 'calculate_taxes' ], - ) - %> +&> -<% include('/elements/footer.html') %> - +<& /elements/footer-popup.html &> <%init> my %opt = @_; @@ -427,6 +425,8 @@ $can_change_credit = 1 my $to = $dst_table eq 'cust_refund' ? ' to Refund' : ''; +$m->comp('/elements/handle_uri_query'); + my($src_pkeyvalue, $amount, $dst_pkeyvalue, $src_amount); if ( $cgi->param('error') ) { $src_pkeyvalue = $cgi->param($src_pkey); @@ -441,8 +441,6 @@ if ( $cgi->param('error') ) { $dst_pkeyvalue = ''; } -my $otaker = getotaker; - my $p1 = popurl(1); my $src = qsearchs($src_table, { $src_pkey => $src_pkeyvalue } );