From a5a258c91c5dc78897d16627b8092385ceb4c4d2 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 22 Nov 2004 18:20:21 +0000 Subject: promo codes and separate signup addresses for hdn --- httemplate/docs/schema.html | 7 ++++--- httemplate/docs/upgrade10.html | 4 ++++ httemplate/edit/cust_main.cgi | 22 ++++++++++++---------- httemplate/edit/part_pkg.cgi | 11 +++++++++-- 4 files changed, 29 insertions(+), 15 deletions(-) (limited to 'httemplate') diff --git a/httemplate/docs/schema.html b/httemplate/docs/schema.html index 2e78f6e9e..c5cfd5119 100644 --- a/httemplate/docs/schema.html +++ b/httemplate/docs/schema.html @@ -268,13 +268,14 @@
  • pkgpart - primary key
  • pkg - package name
  • comment - non-customer visable package comment -
  • setup - setup fee expression +
  • promo_code - promotional code +
  • deprecated setup - setup fee expression
  • freq - recurring frequency (months) -
  • recur - recurring fee expression +
  • deprecated recur - recurring fee expression
  • setuptax - Setup fee tax exempt flag, empty or `Y'
  • recurtax - Recurring fee tax exempt flag, empty or `Y'
  • plan - price plan -
  • plandata - additional price plan data +
  • deprecated plandata - additional price plan data
  • disabled - Disabled flag, empty or `Y'
  • part_pkg_option - Package definition options diff --git a/httemplate/docs/upgrade10.html b/httemplate/docs/upgrade10.html index e17f7add3..9dacf91d8 100644 --- a/httemplate/docs/upgrade10.html +++ b/httemplate/docs/upgrade10.html @@ -250,6 +250,10 @@ ALTER TABLE pkg_svc ADD primary_svc char(1) NULL; ALTER TABLE h_pkg_svc ADD primary_svc char(1) NULL; ALTER TABLE svc_forward ADD src varchar(255) NULL; ALTER TABLE h_svc_forward ADD src varchar(255) NULL; +ALTER TABLE part_pkg ADD promo_code varchar(80) NULL; +ALTER TABLE h_part_pkg ADD promo_code varchar(80) NULL; +CREATE INDEX part_pkg2 ON part_pkg ( promo_code ); +CREATE INDEX h_part_pkg2 ON h_part_pkg ( promo_code ); On recent Pg versions: diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index 4a8f70540..f5826f31b 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -168,8 +168,8 @@ print "

    Billing address", &itable("#cccccc"), < , - + , + END @@ -181,10 +181,10 @@ if ( $conf->exists('show_ss') ) { print < -Company -${r}Address -${r}City${r}State +Company +${r}Address +${r}City${r}State END #false laziness with ship state @@ -203,12 +203,14 @@ my($county_html, $state_html, $country_html) = print "$county_html $state_html"; -print qq!${r}Zip!; +print qq!${r}Zip!; my($daytime,$night,$fax)=( $cust_main->daytime, $cust_main->night, $cust_main->fax, + '', + 'changed(this)', ); my $daytime_label = FS::Msgcat::_gettext('daytime') || 'Day Phone'; @@ -216,9 +218,9 @@ my $night_label = FS::Msgcat::_gettext('night') || 'Night Phone'; print <${r}Country$country_html -$daytime_label -$night_label -Fax +$daytime_label +$night_label +Fax END print "${r}required fields
    "; diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index dc2992459..b3c389c9d 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -93,7 +93,12 @@ Package information - + + Promotional code + + + + Disable new orders @@ -257,7 +262,9 @@ my $widget = new HTML::Widgets::SelectLayers( 'options' => \%options, 'form_name' => 'dummy', 'form_action' => 'process/part_pkg.cgi', - 'form_text' => [ qw(pkg comment clone pkgnum pkgpart), @fixups ], + 'form_text' => [ qw(pkg comment promo_code clone pkgnum pkgpart), + @fixups + ], 'form_checkbox' => [ qw(setuptax recurtax disabled) ], 'form_radio' => \@form_radio, 'form_select' => \@form_select, -- cgit v1.2.1