projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 80114 - added the population of startdate and billsec from ani cdr
[freeside.git]
/
FS
/
FS
/
svc_dish.pm
diff --git
a/FS/FS/svc_dish.pm
b/FS/FS/svc_dish.pm
index
5dac4f4
..
2d249d1
100644
(file)
--- a/
FS/FS/svc_dish.pm
+++ b/
FS/FS/svc_dish.pm
@@
-36,6
+36,8
@@
The following fields are currently supported:
=item acctnum - DISH account number
=item acctnum - DISH account number
+=item installdate - Installation date (as Unix timestamp)
+
=item note - Installation notes: location on property, physical access, etc.
=back
=item note - Installation notes: location on property, physical access, etc.
=back
@@
-61,9
+63,11
@@
sub table_info {
'name' => 'Dish service',
'display_weight' => 58,
'cancel_weight' => 85,
'name' => 'Dish service',
'display_weight' => 58,
'cancel_weight' => 85,
+ 'manual_require' => 1,
'fields' => {
'fields' => {
- 'svcnum' => { label => 'Service' },
- 'acctnum' => { label => 'DISH account#', %opts },
+ 'svcnum' => { label => 'Service' },
+ 'acctnum' => { label => 'DISH account#', required => 1, %opts },
+ 'installdate' => { label => 'Install date', %opts },
'note' => { label => 'Installation notes', %opts },
}
}
'note' => { label => 'Installation notes', %opts },
}
}
@@
-112,7
+116,8
@@
sub check {
my $error =
$self->ut_numbern('svcnum')
|| $self->ut_text('acctnum')
my $error =
$self->ut_numbern('svcnum')
|| $self->ut_text('acctnum')
- || $self->ut_textn('note')
+ || $self->ut_numbern('installdate')
+ || $self->ut_anything('note')
;
return $error if $error;
;
return $error if $error;