summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2010-03-18 07:59:52 +0000
committerivan <ivan>2010-03-18 07:59:52 +0000
commite078ca418dcf3c7b92efcd371ce761df3314c369 (patch)
treea296537d522a47cf083db299fa016c818881a4db /httemplate/edit
parentca68d3b10051450d8523f54cc4e579bb0d8a6cc2 (diff)
disable auto-billing of specific customer packages, RT#6378
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/process/quick-charge.cgi1
-rw-r--r--httemplate/edit/process/quick-cust_pkg.cgi1
-rw-r--r--httemplate/edit/quick-charge.html7
3 files changed, 9 insertions, 0 deletions
diff --git a/httemplate/edit/process/quick-charge.cgi b/httemplate/edit/process/quick-charge.cgi
index 827530e50..27921b8c3 100644
--- a/httemplate/edit/process/quick-charge.cgi
+++ b/httemplate/edit/process/quick-charge.cgi
@@ -61,6 +61,7 @@ unless ( $error ) {
? str2time($cgi->param('start_date'))
: ''
),
+ 'no_auto' => scalar($cgi->param('no_auto')),
'pkg' => scalar($cgi->param('pkg')),
'setuptax' => scalar($cgi->param('setuptax')),
'taxclass' => scalar($cgi->param('taxclass')),
diff --git a/httemplate/edit/process/quick-cust_pkg.cgi b/httemplate/edit/process/quick-cust_pkg.cgi
index a0958922e..202d0a3cf 100644
--- a/httemplate/edit/process/quick-cust_pkg.cgi
+++ b/httemplate/edit/process/quick-cust_pkg.cgi
@@ -57,6 +57,7 @@ my $cust_pkg = new FS::cust_pkg {
? str2time($cgi->param('start_date'))
: ''
),
+ 'no_auto' => scalar($cgi->param('no_auto')),
'refnum' => $refnum,
'locationnum' => $locationnum,
'discountnum' => $discountnum,
diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html
index 64ad3a289..a472915a1 100644
--- a/httemplate/edit/quick-charge.html
+++ b/httemplate/edit/quick-charge.html
@@ -153,6 +153,13 @@ function bill_now_changed (what) {
});
</SCRIPT>
+% if ( $cust_main->payby =~ /^(CARD|CHEK)$/ ) {
+% my $what = lc(FS::payby->shortname($cust_main->payby));
+ <TR>
+ <TD ALIGN="right">Disable automatic <% $what %> charge </TD>
+ <TD COLSPAN=6><INPUT TYPE="checkbox" NAME="no_auto" VALUE="Y"></TD>
+ </TR>
+% }
<TR>
<TD ALIGN="right">Tax exempt </TD>