summaryrefslogtreecommitdiff
path: root/FS/FS/cust_bill_ApplicationCommon.pm
diff options
context:
space:
mode:
authorivan <ivan>2008-06-01 05:43:39 +0000
committerivan <ivan>2008-06-01 05:43:39 +0000
commit103527d74c16f4427b57ce88fc9b8eeb9a79cbda (patch)
tree774ba06a7853e4bf020292cfcbd7f16a2cab9c99 /FS/FS/cust_bill_ApplicationCommon.pm
parent4a800290f33bc515af0677d70444ef196a82b4bf (diff)
add date to "applied to Invoice#" messages in history
Diffstat (limited to 'FS/FS/cust_bill_ApplicationCommon.pm')
-rw-r--r--FS/FS/cust_bill_ApplicationCommon.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/FS/FS/cust_bill_ApplicationCommon.pm b/FS/FS/cust_bill_ApplicationCommon.pm
index 24274e7..803239d 100644
--- a/FS/FS/cust_bill_ApplicationCommon.pm
+++ b/FS/FS/cust_bill_ApplicationCommon.pm
@@ -359,6 +359,18 @@ sub cust_bill {
qsearchs( 'cust_bill', { 'invnum' => $self->invnum } );
}
+=item applied_to_invoice
+
+Returns a string representing the invoice (see L<FS::cust_bill), for example:
+"applied to Invoice #54 (3/20/2008)"
+
+=cut
+
+sub applied_to_invoice {
+ my $self = shift;
+ 'applied to '. $self->cust_bill->invnum_date_pretty;
+}
+
=item lineitem_breakdown_table
=cut