[freeside-commits] freeside/FS/FS Schema.pm, 1.239.2.28, 1.239.2.29 did_order.pm, 1.1.2.3, 1.1.2.4
Erik Levinson
levinse at wavetail.420.am
Mon Apr 11 16:03:34 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv22643/FS/FS
Modified Files:
Tag: FREESIDE_2_1_BRANCH
Schema.pm did_order.pm
Log Message:
improvements to bulk DID orders, RT11291
Index: Schema.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Schema.pm,v
retrieving revision 1.239.2.28
retrieving revision 1.239.2.29
diff -u -w -d -r1.239.2.28 -r1.239.2.29
--- Schema.pm 11 Apr 2011 05:00:46 -0000 1.239.2.28
+++ Schema.pm 11 Apr 2011 23:03:32 -0000 1.239.2.29
@@ -2890,7 +2890,7 @@
'msa', 'varchar', 'NULL', $char_d, '', '',
'npa', 'int', 'NULL', '', '', '',
'latanum', 'int', 'NULL', '', '', '',
- 'rate_center', 'varchar', 'NULL', $char_d, '', '',
+ 'ratecenter', 'varchar', 'NULL', $char_d, '', '',
'state', 'char', 'NULL', 2, '', '',
'quantity', 'int', '', '', '', '',
],
Index: did_order.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/did_order.pm,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -w -d -r1.1.2.3 -r1.1.2.4
--- did_order.pm 6 Apr 2011 08:28:37 -0000 1.1.2.3
+++ did_order.pm 11 Apr 2011 23:03:32 -0000 1.1.2.4
@@ -138,6 +138,17 @@
qsearch( 'did_order_item', { 'ordernum' => $self->ordernum } );
}
+=item cust_main
+
+Returns the cust_main (see L<FS::cust_main>), if any, associated with this bulk DID order.
+
+=cut
+
+sub cust_main {
+ my $self = shift;
+ return '' unless $self->custnum;
+ qsearchs('cust_main', { 'custnum' => $self->custnum } );
+}
=back
More information about the freeside-commits
mailing list