projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 77532 - fixed error where cust main fax not showing, and fixed checking of phonet...
[freeside.git]
/
FS
/
FS
/
cust_credit_bill.pm
diff --git
a/FS/FS/cust_credit_bill.pm
b/FS/FS/cust_credit_bill.pm
index
c015ec1
..
ad5c712
100644
(file)
--- a/
FS/FS/cust_credit_bill.pm
+++ b/
FS/FS/cust_credit_bill.pm
@@
-1,14
+1,9
@@
package FS::cust_credit_bill;
package FS::cust_credit_bill;
+use base qw( FS::cust_main_Mixin FS::cust_bill_ApplicationCommon );
use strict;
use strict;
-use vars qw( @ISA $conf );
-use FS::UID qw( getotaker );
-use FS::Record qw( qsearch qsearchs );
-use FS::cust_bill_ApplicationCommon;
-use FS::cust_bill;
-use FS::cust_credit;
-
-@ISA = qw( FS::cust_bill_ApplicationCommon );
+use vars qw( $conf );
+use FS::UID;
#ask FS::UID to run this stuff for us later
FS::UID->install_callback( sub {
#ask FS::UID to run this stuff for us later
FS::UID->install_callback( sub {
@@
-72,6
+67,7
@@
sub table { 'cust_credit_bill'; }
sub _app_source_name { 'credit'; }
sub _app_source_table { 'cust_credit'; }
sub _app_lineitem_breakdown_table { 'cust_credit_bill_pkg'; }
sub _app_source_name { 'credit'; }
sub _app_source_table { 'cust_credit'; }
sub _app_lineitem_breakdown_table { 'cust_credit_bill_pkg'; }
+sub _app_part_pkg_weight_column { 'credit_weight'; }
=item insert
=item insert
@@
-120,6
+116,7
@@
sub check {
|| $self->ut_foreign_key('invnum', 'cust_bill', 'invnum' )
|| $self->ut_numbern('_date')
|| $self->ut_money('amount')
|| $self->ut_foreign_key('invnum', 'cust_bill', 'invnum' )
|| $self->ut_numbern('_date')
|| $self->ut_money('amount')
+ || $self->ut_foreign_keyn('pkgnum', 'cust_pkg', 'pkgnum')
;
return $error if $error;
;
return $error if $error;
@@
-140,13
+137,6
@@
sub check {
Returns the credit (see L<FS::cust_credit>)
Returns the credit (see L<FS::cust_credit>)
-=cut
-
-sub cust_credit {
- my $self = shift;
- qsearchs( 'cust_credit', { 'crednum' => $self->crednum } );
-}
-
=back
=head1 BUGS
=back
=head1 BUGS