projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix v3 existing customer quotation order, RT#31963
[freeside.git]
/
FS
/
FS
/
quotation.pm
diff --git
a/FS/FS/quotation.pm
b/FS/FS/quotation.pm
index
7f53e31
..
19be006
100644
(file)
--- a/
FS/FS/quotation.pm
+++ b/
FS/FS/quotation.pm
@@
-120,6
+120,10
@@
sub check {
$self->usernum($FS::CurrentUser::CurrentUser->usernum) unless $self->usernum;
$self->usernum($FS::CurrentUser::CurrentUser->usernum) unless $self->usernum;
+ return 'prospectnum or custnum must be specified'
+ if ! $self->prospectnum
+ && ! $self->custnum;
+
$self->SUPER::check;
}
$self->SUPER::check;
}
@@
-284,6
+288,15
@@
sub order {
}
}
+=item quotation_pkg
+
+=cut
+
+sub quotation_pkg {
+ my $self = shift;
+ qsearch('quotation_pkg', { 'quotationnum' => $self->quotationnum } );
+}
+
=back
=head1 CLASS METHODS
=back
=head1 CLASS METHODS