[freeside-commits] freeside/httemplate/browse part_pkg_taxproduct.cgi, 1.2, 1.3
Jeff Finucane,420,,
jeff at wavetail.420.am
Thu Aug 28 14:32:24 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv22114/httemplate/browse
Modified Files:
part_pkg_taxproduct.cgi
Log Message:
taxproduct selection for one time charges
Index: part_pkg_taxproduct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/part_pkg_taxproduct.cgi,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- part_pkg_taxproduct.cgi 28 Aug 2008 07:38:39 -0000 1.2
+++ part_pkg_taxproduct.cgi 28 Aug 2008 21:32:21 -0000 1.3
@@ -31,6 +31,7 @@
my @menubar;
my $title = '';
+my $onclick = 'cClick';
my $data_vendor = '';
if ( $cgi->param('data_vendor') =~ /^(\w+)$/ ) {
@@ -54,10 +55,14 @@
my $id = $1
if ( $cgi->param('id') =~ /^([ \w]+)$/ );
+$onclick = $1
+ if ( $cgi->param('onclick') =~ /^(\w+)$/ );
+$cgi->delete('onclick');
+
my $remove_onclick = <<EOS
parent.document.getElementById('$id').value = '';
parent.document.getElementById('${id}_description').value = '';
- parent.cClick();
+ parent.$onclick();
EOS
if $id;
@@ -67,7 +72,7 @@
my $desc = $row->description;
"parent.document.getElementById('$id').value = $taxnum;".
"parent.document.getElementById('${id}_description').value = '$desc';".
- "parent.cClick();";
+ "parent.$onclick();";
}
if $id;
@@ -111,6 +116,7 @@
$cgi->param('tax_item', $tax_item ) if $tax_item;
$cgi->param('tax_provider', $tax_provider ) if $tax_provider;
$cgi->param('tax_customer', $tax_customer ) if $tax_customer;
+$cgi->param('onclick', $onclick ) if $onclick;
my $count_query = "SELECT COUNT(*) FROM part_pkg_taxproduct $extra_sql";
@@ -152,6 +158,7 @@
<FORM>
<INPUT NAME="_type" TYPE="hidden" VALUE="$type">
<INPUT NAME="taxproductnum" TYPE="hidden" VALUE="$taxproductnum">
+ <INPUT NAME="onclick" TYPE="hidden" VALUE="$onclick">
<INPUT NAME="id" TYPE="hidden" VALUE="$id">
<TABLE>
<TR>
More information about the freeside-commits
mailing list