X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_bill_pay_pkg.pm;h=eb2e80c78a832b9413e67dc76effdf879d62a1d8;hp=48c436483d74d2649edc59bad2aa55b33203e286;hb=aed8ec35ccb9cdeb7ea0cb6ff2946f9d83d582f6;hpb=87ddf7284561e5c912aefe2ecc3f348649b78183 diff --git a/FS/FS/cust_bill_pay_pkg.pm b/FS/FS/cust_bill_pay_pkg.pm index 48c436483..eb2e80c78 100644 --- a/FS/FS/cust_bill_pay_pkg.pm +++ b/FS/FS/cust_bill_pay_pkg.pm @@ -149,6 +149,13 @@ sub check { $self->ut_numbern('billpaypkgnum') || $self->ut_foreign_key('billpaynum', 'cust_bill_pay', 'billpaynum' ) || $self->ut_foreign_key('billpkgnum', 'cust_bill_pkg', 'billpkgnum' ) + || $self->ut_foreign_keyn('pkgnum', 'cust_pkg', 'pkgnum') + || $self->ut_foreign_keyn('billpkgtaxlocationnum', + 'cust_bill_pkg_tax_location', + 'billpkgtaxlocationnum') + || $self->ut_foreign_keyn('billpkgtaxratelocationnum', + 'cust_bill_pkg_tax_rate_location', + 'billpkgtaxratelocationnum') || $self->ut_money('amount') || $self->ut_enum('setuprecur', [ 'setup', 'recur' ] ) || $self->ut_numbern('sdate') @@ -194,7 +201,7 @@ sub send_receipt { my $self = shift; my $opt = ref($_[0]) ? shift : { @_ }; $self->cust_bill_pay->send_receipt( - 'cust_pkg' => $self->cust_bill_pkg->cust_pkg, + 'cust_pkg' => scalar($self->cust_bill_pkg->cust_pkg), %$opt, ); }