X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_svc.cgi;h=88f8d8d197ef1600760182488c5acf03d245413e;hb=b3c70d709fd646ef355d49a4e87151c99ee413e9;hp=0d36853557b1097b3297a74d05e00da58cbcbb9e;hpb=c2e126583354b58ef54ffa7f580b115b8eed1dd3;p=freeside.git
diff --git a/httemplate/browse/part_svc.cgi b/httemplate/browse/part_svc.cgi
index 0d3685355..88f8d8d19 100755
--- a/httemplate/browse/part_svc.cgi
+++ b/httemplate/browse/part_svc.cgi
@@ -61,6 +61,8 @@ function part_export_areyousure(href) {
Modifier |
+ Required |
+
% my $conf = FS::Conf->new;
% foreach my $part_svc ( @part_svc ) {
@@ -78,6 +80,9 @@ function part_export_areyousure(href) {
% $col->columnflag || ( $col->columnlabel !~ /^\S*$/
% && $col->columnlabel ne $def->{'label'}
% )
+% || ( $col->required
+% && !$def->{'required'}
+% )
% )
% }
% @dfields ;
@@ -150,13 +155,13 @@ function part_export_areyousure(href) {
% unless ( @fields ) {
-% for ( 1..4 ) {
+% for ( 1..5 ) {
% }
% }
%
% my($n1)='';
-% foreach my $field ( @fields ) {
+% foreach my $field ( sort @fields ) {
%
% #a few lines of false laziness w/edit/part_svc.cgi
% my $def = FS::part_svc->svc_table_fields($svcdb)->{$field};
@@ -170,7 +175,6 @@ function part_export_areyousure(href) {
| <% $field %> |
<% $label %> |
<% $flag{$flag} %> |
-
% my $value = &$formatter($part_svc->part_svc_column($field)->columnvalue);
% if ( $flag =~ /^[MAH]$/ ) {
@@ -189,6 +193,11 @@ function part_export_areyousure(href) {
% }
|
+
+% if ($part_svc_column->required) {
+ Yes
+% }
+ |
% $n1="";
% } #foreach $field
% if ( $part_svc->restrict_edit_password ) {