projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
UI cleanup: hide new taxproduct selector when taxproducts are not in use
[freeside.git]
/
httemplate
/
edit
/
part_pkg.cgi
diff --git
a/httemplate/edit/part_pkg.cgi
b/httemplate/edit/part_pkg.cgi
index
bfa5d50
..
a90a625
100755
(executable)
--- a/
httemplate/edit/part_pkg.cgi
+++ b/
httemplate/edit/part_pkg.cgi
@@
-200,7
+200,6
@@
include_opt_callback =>
sub { pkgpart => $_[0]->pkgpart },
},
include_opt_callback =>
sub { pkgpart => $_[0]->pkgpart },
},
-
{ type => 'tablebreak-tr-title',
value => 'Promotions', #better name?
{ 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;
};
$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';
+ }
}
};
}
};