summaryrefslogtreecommitdiff
path: root/FS/bin
diff options
context:
space:
mode:
authorivan <ivan>2007-02-25 03:08:10 +0000
committerivan <ivan>2007-02-25 03:08:10 +0000
commitb3fde003816e1c3035af95ab6f58cba807a046e9 (patch)
treea3fac080b751a65087e8cf23066fa87bd4d4bc46 /FS/bin
parent14ebc8eed1ce5930089e8cccb8711daa9279c265 (diff)
add selfservice-ignore_quantity flag
Diffstat (limited to 'FS/bin')
-rw-r--r--FS/bin/freeside-selfservice-server7
1 files changed, 5 insertions, 2 deletions
diff --git a/FS/bin/freeside-selfservice-server b/FS/bin/freeside-selfservice-server
index 187bc1469..205f1c3ab 100644
--- a/FS/bin/freeside-selfservice-server
+++ b/FS/bin/freeside-selfservice-server
@@ -16,8 +16,7 @@ use FS::UID qw(adminsuidsetup forksuidsetup);
use FS::ClientAPI;
use FS::Conf;
-use FS::cust_bill;
-use FS::cust_pkg;
+use FS::cust_svc;
$FREESIDE_LOG = "%%%FREESIDE_LOG%%%";
$FREESIDE_LOCK = "%%%FREESIDE_LOCK%%%";
@@ -58,6 +57,10 @@ logfile("$FREESIDE_LOG/selfservice.$machine.log");
daemonize2();
my $conf = new FS::Conf;
+if ( $conf->exists('selfservice-ignore_quantity') ) {
+ $FS::cust_svc::ignore_quantity = 1;
+ $FS::cust_svc::ignore_quantity = 1; #now it is used twice.
+}
my $clientd = "/usr/local/sbin/freeside-selfservice-clientd"; #better name?