[freeside-commits] freeside/FS/FS did_order.pm, 1.2, 1.3 Schema.pm, 1.283, 1.284

Erik Levinson levinse at wavetail.420.am
Mon Apr 11 16:00:19 PDT 2011


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv22063/FS/FS

Modified Files:
	did_order.pm Schema.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.283
retrieving revision 1.284
diff -u -w -d -r1.283 -r1.284
--- Schema.pm	11 Apr 2011 05:00:45 -0000	1.283
+++ Schema.pm	11 Apr 2011 23:00:03 -0000	1.284
@@ -3141,7 +3141,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.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- did_order.pm	6 Apr 2011 08:19:57 -0000	1.2
+++ did_order.pm	11 Apr 2011 23:00:03 -0000	1.3
@@ -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