use FS::cust_location;
use FS::cust_bill_pay_pkg;
use FS::cust_credit_bill_pkg;
+use FS::cust_main_county;
=head1 NAME
map { $cust_location->$_ }
qw( state county city ) # country?
);
- $self->cust_bill_pkg->desc. " ($location)";
+ my $cust_bill_pkg_desc = $self->billpkgnum
+ ? $self->cust_bill_pkg->desc
+ : $self->cust_bill_pkg_desc;
+ "$cust_bill_pkg_desc ($location)";
}
=item owed
);
}
+sub cust_main_county {
+ my $self = shift;
+ my $result;
+ if ( $self->taxtype eq 'FS::cust_main_county' ) {
+ $result = qsearchs( 'cust_main_county', { 'taxnum' => $self->taxnum } );
+ }
+}
+
=back
=head1 BUGS
+The presense of FS::cust_main_county::delete makes the cust_main_county method
+unreliable
+
=head1 SEE ALSO
L<FS::Record>, schema.html from the base documentation.