[freeside-commits] freeside/FS/FS cust_bill.pm, 1.202, 1.203 cust_bill_ApplicationCommon.pm, 1.8, 1.9
Ivan,,,
ivan at wavetail.420.am
Sat May 31 22:43:41 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv9358/FS/FS
Modified Files:
cust_bill.pm cust_bill_ApplicationCommon.pm
Log Message:
add date to "applied to Invoice#" messages in history
Index: cust_bill_ApplicationCommon.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill_ApplicationCommon.pm,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- cust_bill_ApplicationCommon.pm 1 Mar 2007 16:36:07 -0000 1.8
+++ cust_bill_ApplicationCommon.pm 1 Jun 2008 05:43:38 -0000 1.9
@@ -359,6 +359,18 @@
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
Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.202
retrieving revision 1.203
diff -u -d -r1.202 -r1.203
--- cust_bill.pm 1 Jun 2008 00:11:54 -0000 1.202
+++ cust_bill.pm 1 Jun 2008 05:43:38 -0000 1.203
@@ -2505,6 +2505,18 @@
$msg;
}
+=item invnum_date_pretty
+
+Returns a string with the invoice number and date, for example:
+"Invoice #54 (3/20/2008)"
+
+=cut
+
+sub invnum_date_pretty {
+ my $self = shift;
+ 'Invoice #'. $self->invnum. ' ('. time2str('%x', $self->_date). ')';
+}
+
sub _items_sections {
my $self = shift;
More information about the freeside-commits
mailing list