[freeside-commits] branch FREESIDE_3_BRANCH updated. 082e62dc812df1053abe7fcf1042f9a3feaeb6f5
Ivan
ivan at 420.am
Tue Apr 5 20:28:10 PDT 2016
The branch, FREESIDE_3_BRANCH has been updated
via 082e62dc812df1053abe7fcf1042f9a3feaeb6f5 (commit)
from b0a7df36df52eebbc75edca3480a0b697459a187 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 082e62dc812df1053abe7fcf1042f9a3feaeb6f5
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Apr 5 20:28:09 2016 -0700
fix application of things when there's lots of CCH data and an error, RT#41610
diff --git a/httemplate/edit/elements/ApplicationCommon.html b/httemplate/edit/elements/ApplicationCommon.html
index ffc303c..04dc489 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',
- )
+ &>
</%doc>
+<& /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 &>
<P ID="ErrorMessage"></P>
<FORM ACTION="<% $p1. $opt{'form_action'} %>" NAME="ApplicationForm" ID="ApplicationForm" METHOD=POST>
@@ -213,11 +212,10 @@ Apply to:
</TR>
</TABLE>
</CENTER>
-<% include( '/elements/xmlhttp.html',
+<& /elements/xmlhttp.html,
'url' => $p.'misc/xmlhttp-calculate_taxes.html',
'subs' => [ 'calculate_taxes' ],
- )
- %>
+&>
<SCRIPT TYPE="text/javascript">
function show_taxes(arg) {
@@ -393,8 +391,7 @@ function myOnLoadFunction () {
</SCRIPT>
-<% include('/elements/footer.html') %>
-
+<& /elements/footer-popup.html &>
<%init>
my %opt = @_;
@@ -428,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);
diff --git a/httemplate/edit/process/elements/ApplicationCommon.html b/httemplate/edit/process/elements/ApplicationCommon.html
index c7bdd3e..a73b1bc 100644
--- a/httemplate/edit/process/elements/ApplicationCommon.html
+++ b/httemplate/edit/process/elements/ApplicationCommon.html
@@ -21,7 +21,8 @@ Examples:
</%doc>
%if ( $error ) {
% $cgi->param('error', $error);
-<% $cgi->redirect(popurl(2). $opt{error_redirect}. '?'. $cgi->query_string ) %>
+% my $query = $m->scomp('/elements/create_uri_query');
+<% $cgi->redirect(popurl(2). $opt{error_redirect}. "?$query") %>
%} else {
<% header("$src_thing application$to sucessful") %>
<SCRIPT TYPE="text/javascript">
-----------------------------------------------------------------------
Summary of changes:
httemplate/edit/elements/ApplicationCommon.html | 37 ++++++++++----------
.../edit/process/elements/ApplicationCommon.html | 3 +-
2 files changed, 20 insertions(+), 20 deletions(-)
More information about the freeside-commits
mailing list