From c21b6e69583bec632de7fcd340c29982c868f73d Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 11 Dec 2004 07:51:00 +0000 Subject: [PATCH] voiding of echeck payments instead of refunds --- FS/FS/Conf.pm | 7 + httemplate/view/cust_main.cgi | 769 +------------------------ httemplate/view/cust_main/order_pkg.html | 39 ++ httemplate/view/cust_main/packages.html | 350 +++++++++++ httemplate/view/cust_main/payment_history.html | 357 ++++++++++++ httemplate/view/cust_main/quick-charge.html | 32 + 6 files changed, 798 insertions(+), 756 deletions(-) create mode 100644 httemplate/view/cust_main/order_pkg.html create mode 100755 httemplate/view/cust_main/packages.html create mode 100644 httemplate/view/cust_main/payment_history.html create mode 100644 httemplate/view/cust_main/quick-charge.html diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index acb33d291..f8dc7d924 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -1363,6 +1363,13 @@ httemplate/docs/config.html 'type' => 'text', }, + { + 'key' => 'echeck-void', + 'section' => 'billing', + 'description' => 'Enable local-only voiding of echeck payments in addition to refunds against the payment gateway', + 'type' => 'checkbox', + }, + ); 1; diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index 322f0674e..d5d77f2a5 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -6,16 +6,16 @@ my $conf = new FS::Conf; my %uiview = (); my %uiadd = (); foreach my $part_svc ( qsearch('part_svc',{}) ) { - $uiview{$part_svc->svcpart} = popurl(2). "view/". $part_svc->svcdb . ".cgi"; - $uiadd{$part_svc->svcpart}= popurl(2). "edit/". $part_svc->svcdb . ".cgi"; + $uiview{$part_svc->svcpart} = $p. "view/". $part_svc->svcdb . ".cgi"; + $uiadd{$part_svc->svcpart}= $p. "edit/". $part_svc->svcdb . ".cgi"; } -print header("Customer View", menubar( - 'Main Menu' => popurl(2) -)); - %> +<%= header("Customer View", menubar( + 'Main Menu' => $p, +)) %> +