X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_bill_pkg.pm;h=3478904ecab4fc775fe5411f823030e99f2e1afd;hb=e96a3fd1c8ee8c711a7e119c0937da6866bbd4f0;hp=a6615d05d8be08fdb335f70f29ffc98bb377ff3b;hpb=c0567c688084e89fcd11bf82348b6c418f1254ac;p=freeside.git diff --git a/FS/FS/cust_bill_pkg.pm b/FS/FS/cust_bill_pkg.pm index a6615d05d..3478904ec 100644 --- a/FS/FS/cust_bill_pkg.pm +++ b/FS/FS/cust_bill_pkg.pm @@ -36,6 +36,8 @@ supported: =over 4 +=item billpkgnum - primary key + =item invnum - invoice (see L) =item pkgnum - package (see L) or 0 for the special virtual sales tax package @@ -153,7 +155,8 @@ sub check { my $self = shift; my $error = - $self->ut_number('pkgnum') + $self->ut_numbern('billpkgnum') + || $self->ut_number('pkgnum') || $self->ut_number('invnum') || $self->ut_money('setup') || $self->ut_money('recur') @@ -171,7 +174,7 @@ sub check { return "Unknown invnum" unless qsearchs( 'cust_bill' ,{ 'invnum' => $self->invnum } ); - ''; #no error + $self->SUPER::check; } =item cust_pkg