summaryrefslogtreecommitdiff
path: root/httemplate/edit/part_pkg.cgi
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-06-18 17:16:33 -0700
committerMark Wells <mark@freeside.biz>2015-06-18 17:16:33 -0700
commitd1a46f2831b8f74d4d323be20e70e36ad9d2aff8 (patch)
tree5eacbe96a95b8ec8ae9ddeb1078002213f129dde /httemplate/edit/part_pkg.cgi
parented4675557ac1b7012bc1c1607a73070f052bede5 (diff)
UI cleanup: hide new taxproduct selector when taxproducts are not in use
Diffstat (limited to 'httemplate/edit/part_pkg.cgi')
-rwxr-xr-xhttemplate/edit/part_pkg.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi
index bfa5d50ea..a90a62508 100755
--- a/httemplate/edit/part_pkg.cgi
+++ b/httemplate/edit/part_pkg.cgi
@@ -200,7 +200,6 @@
include_opt_callback =>
sub { pkgpart => $_[0]->pkgpart },
},
-
{ type => 'tablebreak-tr-title',
value => 'Promotions', #better name?
@@ -1219,6 +1218,11 @@ my $field_callback = sub {
};
$fieldref->{layer_fields} = \%taxproduct_fields;
$fieldref->{layer_values_callback} = $taxproduct_values;
+ } elsif ($field eq 'taxproductnum') { # part_pkg-taxproduct, new style
+ if ( !$taxproducts ) {
+ # then make the widget go away
+ $fieldref->{type} = 'hidden';
+ }
}
};