diff options
author | jeff <jeff> | 2009-07-20 14:26:12 +0000 |
---|---|---|
committer | jeff <jeff> | 2009-07-20 14:26:12 +0000 |
commit | 87a986f35b347affed5f1e1ff5c5c7c59ccd4ad1 (patch) | |
tree | 00971fb15325dadfa0ddf7030fab4912810f6d0c /FS/FS/part_pkg_link.pm | |
parent | 52d81f0b1f3bc092da71e7f5919d332c4fa012d5 (diff) |
bundle bill linked packages into top line total when desired #5724
Diffstat (limited to 'FS/FS/part_pkg_link.pm')
-rw-r--r-- | FS/FS/part_pkg_link.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/FS/FS/part_pkg_link.pm b/FS/FS/part_pkg_link.pm index f517360..fb7a8d3 100644 --- a/FS/FS/part_pkg_link.pm +++ b/FS/FS/part_pkg_link.pm @@ -51,6 +51,11 @@ Destination package (see L<FS::part_pkg>) Link type - currently, "bill" (source package bills a line item from target package), or "svc" (source package includes services from target package). +=item hidden + +Flag indicating that this subpackage should be felt, but not seen as an invoice +line item when set to 'Y' + =back =head1 METHODS @@ -114,7 +119,8 @@ sub check { $self->ut_numbern('pkglinknum') || $self->ut_foreign_key('src_pkgpart', 'part_pkg', 'pkgpart') || $self->ut_foreign_key('dst_pkgpart', 'part_pkg', 'pkgpart') - || $self->ut_text('link_type', [ 'bill', 'svc' ] ) + || $self->ut_enum('link_type', [ 'bill', 'svc' ] ) + || $self->ut_enum('hidden', [ '', 'Y' ] ) ; return $error if $error; |