projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 78356 - Updated documentation
[freeside.git]
/
FS
/
FS
/
svc_external.pm
diff --git
a/FS/FS/svc_external.pm
b/FS/FS/svc_external.pm
index
5aaee48
..
338fdbc
100644
(file)
--- a/
FS/FS/svc_external.pm
+++ b/
FS/FS/svc_external.pm
@@
-69,6
+69,15
@@
sub table_info {
'display_weight' => 90,
'cancel_weight' => 10,
'fields' => {
'display_weight' => 90,
'cancel_weight' => 10,
'fields' => {
+ 'id' => { label => 'Unique number of external record',
+ type => 'text',
+ disable_default => 1,
+ disable_fixed => 1,
+ },
+ 'title' => { label => 'Printed on invoice line items',
+ type => 'text',
+ #disable_inventory => 1,
+ },
},
};
}
},
};
}
@@
-79,11
+88,15
@@
sub table { 'svc_external'; }
sub label {
my $self = shift;
my $conf = new FS::Conf;
sub label {
my $self = shift;
my $conf = new FS::Conf;
- if ( $conf->config('svc_external-display_type') eq 'artera_turbo' ) {
+ if ( $conf->exists('svc_external-display_type')
+ && $conf->config('svc_external-display_type') eq 'artera_turbo' )
+ {
sprintf('%010d', $self->id). '-'.
substr('0000000000'.uc($self->title), -10);
} else {
sprintf('%010d', $self->id). '-'.
substr('0000000000'.uc($self->title), -10);
} else {
- $self->SUPER::label;
+ #$self->SUPER::label;
+ return $self->id unless $self->title =~ /\S/;
+ $self->id. ' - '. $self->title;
}
}
}
}