From 8800e519dc0e4b8eee4ab2cddc74d52c205bc536 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 25 Sep 2009 12:29:16 +0000 Subject: processing fee on credit card recharges, RT#5889 --- FS/FS/Conf.pm | 42 +++++++++++------------------------------- 1 file changed, 11 insertions(+), 31 deletions(-) (limited to 'FS') diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index e7a9c1601..d5304afab 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -1430,23 +1430,7 @@ worry that config_items is freeside-specific and icky. 'key' => 'signup_server-default_pkgpart', 'section' => '', 'description' => 'Default package for the signup server', - 'type' => 'select-sub', - 'options_sub' => sub { require FS::Record; - require FS::part_pkg; - map { $_->pkgpart => $_->pkg.' - '.$_->comment } - FS::Record::qsearch( 'part_pkg', - { 'disabled' => ''} - ); - }, - 'option_sub' => sub { require FS::Record; - require FS::part_pkg; - my $part_pkg = FS::Record::qsearchs( - 'part_pkg', { 'pkgpart'=>shift } - ); - $part_pkg - ? $part_pkg->pkg.' - '.$part_pkg->comment - : ''; - }, + 'type' => 'select-part_pkg', }, { @@ -1822,6 +1806,13 @@ worry that config_items is freeside-specific and icky. 'select_enum' => \@card_types, }, + { + 'key' => 'manual_process-pkgpart', + 'section' => 'billing', + 'description' => 'Package to add to each manual credit card and ACH payments entered from the backend. Enabling this option may be in violation of your merchant agreement(s), so please check them carefully before enabling this option.', + 'type' => 'select-part_pkg', + }, + { 'key' => 'allow_negative_charges', 'section' => 'billing', @@ -2283,19 +2274,7 @@ worry that config_items is freeside-specific and icky. 'key' => 'postal_invoice-fee_pkgpart', 'section' => 'billing', 'description' => 'This allows selection of a package to insert on invoices for customers with postal invoices selected.', - 'type' => 'select-sub', - 'options_sub' => sub { require FS::Record; - require FS::part_pkg; - map { $_->pkgpart => $_->pkg } - FS::Record::qsearch('part_pkg', { disabled=>'' } ); - }, - 'option_sub' => sub { require FS::Record; - require FS::part_pkg; - my $part_pkg = FS::Record::qsearchs( - 'part_pkg', { 'pkgpart'=>shift } - ); - $part_pkg ? $part_pkg->pkg : ''; - }, + 'type' => 'select-part_pkg', }, { @@ -2607,7 +2586,8 @@ worry that config_items is freeside-specific and icky. 'key' => 'support_packages', 'section' => '', 'description' => 'A list of packages eligible for RT ticket time transfer, one pkgpart per line.', #this should really be a select multiple, or specified in the packages themselves... - 'type' => 'textarea', + 'type' => 'select-part_pkg', + 'multiple' => 1, }, { -- cgit v1.2.1