projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
14ebc8e
)
add selfservice-ignore_quantity flag
author
ivan
<ivan>
Sun, 25 Feb 2007 03:08:10 +0000
(
03:08
+0000)
committer
ivan
<ivan>
Sun, 25 Feb 2007 03:08:10 +0000
(
03:08
+0000)
FS/FS/Conf.pm
patch
|
blob
|
history
FS/bin/freeside-selfservice-server
patch
|
blob
|
history
diff --git
a/FS/FS/Conf.pm
b/FS/FS/Conf.pm
index
8db0b0c
..
2f01e1f
100644
(file)
--- a/
FS/FS/Conf.pm
+++ b/
FS/FS/Conf.pm
@@
-2045,6
+2045,13
@@
httemplate/docs/config.html
'type' => 'textarea',
},
'type' => 'textarea',
},
+ {
+ 'key' => 'selfservice-ignore_quantity',
+ 'section' => '',
+ 'description' => 'Ignores service quantity restrictions in self-service context. Strongly not recommended - just set your quantities correctly in the first place.',
+ 'type' => 'checkbox',
+ },
+
);
1;
);
1;
diff --git
a/FS/bin/freeside-selfservice-server
b/FS/bin/freeside-selfservice-server
index
187bc14
..
205f1c3
100644
(file)
--- 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::ClientAPI;
use FS::Conf;
-use FS::cust_bill;
-use FS::cust_pkg;
+use FS::cust_svc;
$FREESIDE_LOG = "%%%FREESIDE_LOG%%%";
$FREESIDE_LOCK = "%%%FREESIDE_LOCK%%%";
$FREESIDE_LOG = "%%%FREESIDE_LOG%%%";
$FREESIDE_LOCK = "%%%FREESIDE_LOCK%%%";
@@
-58,6
+57,10
@@
logfile("$FREESIDE_LOG/selfservice.$machine.log");
daemonize2();
my $conf = new FS::Conf;
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?
my $clientd = "/usr/local/sbin/freeside-selfservice-clientd"; #better name?