[freeside-commits] freeside/FS/FS/part_event/Condition once.pm, 1.4, 1.5

Ivan,,, ivan at wavetail.420.am
Thu Oct 4 16:52:55 PDT 2007


Update of /home/cvs/cvsroot/freeside/FS/FS/part_event/Condition
In directory wavetail:/tmp/cvs-serv24589

Modified Files:
	once.pm 
Log Message:
such a dumb little thing, but i think that should really do it.  whew

Index: once.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_event/Condition/once.pm,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- once.pm	4 Oct 2007 23:40:51 -0000	1.4
+++ once.pm	4 Oct 2007 23:52:53 -0000	1.5
@@ -22,17 +22,16 @@
   my $tablenum = $object->$obj_pkey();
   
   my @existing = qsearch( {
-    'table'    => 'cust_event',
-    'hashref'  => {
-                    'eventpart' => $self->eventpart,
-                    'tablenum'  => $tablenum,
-                    #'status'    => { op=>'NOT IN', value=>"('failed','new')" },
-                    'status'    => { op=>'!=', value=>'failed' },
-                  },
-    'addl_sql' => ( $opt{'cust_event'}->eventnum =~ /^(\d+)$/
-                      ? " AND eventnum != $1 "
-                      : ''
-                  ),
+    'table'     => 'cust_event',
+    'hashref'   => {
+                     'eventpart' => $self->eventpart,
+                     'tablenum'  => $tablenum,
+                     'status'    => { op=>'!=', value=>'failed' },
+                   },
+    'extra_sql' => ( $opt{'cust_event'}->eventnum =~ /^(\d+)$/
+                       ? " AND eventnum != $1 "
+                       : ''
+                   ),
   } );
 
   ! scalar(@existing);



More information about the freeside-commits mailing list