summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authormark <mark>2011-05-27 01:11:19 +0000
committermark <mark>2011-05-27 01:11:19 +0000
commitb080ab3e3ed12a6bdf1bd2b7e3799fe1336a3c47 (patch)
treed907b78775c9ae62db283ad47562e80ff3ab0ab0 /FS
parent9c3cd0386047b568c7c4ad77c72815abfff10456 (diff)
invoice batch download fix, #11871
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_bill.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 7d1e218c4..4c2b521bf 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -245,6 +245,7 @@ sub delete {
cust_pay_batch
cust_bill_pay_batch
cust_bill_pkg
+ cust_bill_batch
)) {
foreach my $linked ( $self->$table() ) {
@@ -704,6 +705,17 @@ sub cust_credit_bill_pkg {
}
+=item cust_bill_batch
+
+Returns all invoice batch records (L<FS::cust_bill_batch>) for this invoice.
+
+=cut
+
+sub cust_bill_batch {
+ my $self = shift;
+ qsearch('cust_bill_batch', { 'invnum' => $self->invnum });
+}
+
=item tax
Returns the tax amount (see L<FS::cust_bill_pkg>) for this invoice.