X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg_link.pm;h=fb7a8d387a1613682f91cd23d7f3346f3aadefc2;hp=f51736055f6923cb5925a032fe1c8e004b114084;hb=74e058c8a010ef6feb539248a550d0bb169c1e94;hpb=b286503a0445e77d67b323785a73d4339c1145a9 diff --git a/FS/FS/part_pkg_link.pm b/FS/FS/part_pkg_link.pm index f51736055..fb7a8d387 100644 --- a/FS/FS/part_pkg_link.pm +++ b/FS/FS/part_pkg_link.pm @@ -51,6 +51,11 @@ Destination package (see L) 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;