From c21b6e69583bec632de7fcd340c29982c868f73d Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 11 Dec 2004 07:51:00 +0000 Subject: voiding of echeck payments instead of refunds --- httemplate/view/cust_main/quick-charge.html | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 httemplate/view/cust_main/quick-charge.html (limited to 'httemplate/view/cust_main/quick-charge.html') diff --git a/httemplate/view/cust_main/quick-charge.html b/httemplate/view/cust_main/quick-charge.html new file mode 100644 index 000000000..e62949e56 --- /dev/null +++ b/httemplate/view/cust_main/quick-charge.html @@ -0,0 +1,32 @@ +<% + my( $cust_main ) = @_; + my $conf = new FS::Conf; +%> + +
+ +Description: + Amount: + <% + + #false laziness w/ edit/part_pkg.cgi + if ( $conf->exists('enable_taxclasses') ) { + print ''; + } else { + print ''; + } + +%> + + +
+ -- cgit v1.2.1 From 979005a72a338e4b8d2fa6bd6e6be63d8a3194ab Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 12 Dec 2004 18:51:31 +0000 Subject: fix form action url for template --- httemplate/view/cust_main/quick-charge.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httemplate/view/cust_main/quick-charge.html') diff --git a/httemplate/view/cust_main/quick-charge.html b/httemplate/view/cust_main/quick-charge.html index e62949e56..0b51586d1 100644 --- a/httemplate/view/cust_main/quick-charge.html +++ b/httemplate/view/cust_main/quick-charge.html @@ -3,7 +3,7 @@ my $conf = new FS::Conf; %> -
+ Description:  Amount: -- cgit v1.2.1 From 7a97ed31c38e975c6548083039ff2ce31c6d8cf3 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 7 Oct 2005 02:25:41 +0000 Subject: add require_taxclasses config flag --- httemplate/view/cust_main/quick-charge.html | 53 +++++++++++++++++++---------- 1 file changed, 35 insertions(+), 18 deletions(-) (limited to 'httemplate/view/cust_main/quick-charge.html') diff --git a/httemplate/view/cust_main/quick-charge.html b/httemplate/view/cust_main/quick-charge.html index 0b51586d1..9e4fb8c6e 100644 --- a/httemplate/view/cust_main/quick-charge.html +++ b/httemplate/view/cust_main/quick-charge.html @@ -6,26 +6,43 @@ Description: - Amount: - <% +Amount: +<% #false laziness w/ edit/part_pkg.cgi %> +<% if ( $conf->exists('enable_taxclasses') ) { %> + + '; - my $sth = dbh->prepare('SELECT DISTINCT taxclass FROM cust_main_county') - or die dbh->errstr; - $sth->execute or die $sth->errstr; - foreach my $taxclass ( map $_->[0], @{$sth->fetchall_arrayref} ) { - print qq!!; - } - print ''; - } else { - print ''; - } + <% foreach my $taxclass ( @taxclasses ) { %> + + -- cgit v1.2.1 From d1a885c65ac10e19bed0333a380dafeb42c2cef1 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 8 Oct 2005 00:47:20 +0000 Subject: fix tax class selection in package add/edit too --- httemplate/view/cust_main/quick-charge.html | 41 ++++------------------------- 1 file changed, 5 insertions(+), 36 deletions(-) (limited to 'httemplate/view/cust_main/quick-charge.html') diff --git a/httemplate/view/cust_main/quick-charge.html b/httemplate/view/cust_main/quick-charge.html index 9e4fb8c6e..2fe3d5f3d 100644 --- a/httemplate/view/cust_main/quick-charge.html +++ b/httemplate/view/cust_main/quick-charge.html @@ -1,49 +1,18 @@ <% my( $cust_main ) = @_; - my $conf = new FS::Conf; %>
- -Description: -Amount: -<% #false laziness w/ edit/part_pkg.cgi %> -<% if ( $conf->exists('enable_taxclasses') ) { %> - - - <% - my $sth = dbh->prepare('SELECT DISTINCT taxclass FROM cust_main_county') - or die dbh->errstr; - $sth->execute or die $sth->errstr; - my %taxclasses = map { $_->[0] => 1 } @{$sth->fetchall_arrayref}; - my @taxclasses = grep $_, keys %taxclasses; - %> - - <% foreach my $taxclass ( @taxclasses ) { %> - -
-- cgit v1.2.1