projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git.freeside.biz/home/git/freeside
[freeside.git]
/
FS
/
FS
/
quotation_pkg_detail.pm
diff --git
a/FS/FS/quotation_pkg_detail.pm
b/FS/FS/quotation_pkg_detail.pm
index
be3d815
..
76e2fd1
100644
(file)
--- a/
FS/FS/quotation_pkg_detail.pm
+++ b/
FS/FS/quotation_pkg_detail.pm
@@
-34,15
+34,18
@@
currently supported:
primary key
primary key
-=item
bill
pkgnum
+=item
quotation
pkgnum
-named thusly for quick compatability with L<FS::TemplateItem_Mixin>,
-actually the quotationpkgnum for the relevant L<FS::quotation_pkg>
+for the relevant L<FS::quotation_pkg>
=item detail
detail text
=item detail
detail text
+=item copy_on_order
+
+flag, indicates detail should be copied over when ordering
+
=cut
# 'format' field isn't used, there for TemplateItem_Mixin
=cut
# 'format' field isn't used, there for TemplateItem_Mixin
@@
-108,8
+111,9
@@
sub check {
my $error =
$self->ut_numbern('detailnum')
my $error =
$self->ut_numbern('detailnum')
- || $self->ut_foreign_key('
bill
pkgnum', 'quotation_pkg', 'quotationpkgnum')
+ || $self->ut_foreign_key('
quotation
pkgnum', 'quotation_pkg', 'quotationpkgnum')
|| $self->ut_text('detail')
|| $self->ut_text('detail')
+ || $self->ut_flag('copy_on_order')
;
return $error if $error;
;
return $error if $error;