[freeside-commits] freeside/FS/FS h_Common.pm,1.6,1.7

Ivan,,, ivan at wavetail.420.am
Fri Nov 30 17:33:37 PST 2007


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv8284

Modified Files:
	h_Common.pm 
Log Message:
this doesn't actually have anything to do with cancellation persay, since its generic now

Index: h_Common.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/h_Common.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- h_Common.pm	29 Oct 2007 10:30:52 -0000	1.6
+++ h_Common.pm	1 Dec 2007 01:33:35 -0000	1.7
@@ -33,7 +33,7 @@
 Returns an a list consisting of the "SELECT", "EXTRA_SQL", SQL fragments, a
 placeholder for "CACHE_OBJ" and an "AS" SQL fragment, to search for the
 appropriate history records created before END_TIMESTAMP and (optionally) not
-cancelled before START_TIMESTAMP.
+deleted before START_TIMESTAMP.
 
 =cut
 
@@ -49,16 +49,16 @@
     confess 'Called sql_h_search without END_TIMESTAMP';
   }
 
-  my( $notcancelled, $notcancelled_mr ) = ( '', '' );
+  my( $notdeleted, $notdeleted_mr ) = ( '', '' );
   if ( scalar(@_) && $_[0] ) {
-    $notcancelled =
+    $notdeleted =
       "AND 0 = ( SELECT COUNT(*) FROM $table as notdel
                    WHERE notdel.$pkey = maintable.$pkey
                      AND notdel.history_action = 'delete'
                      AND notdel.history_date > maintable.history_date
                      AND notdel.history_date <= $_[0]
                )";
-    $notcancelled_mr =
+    $notdeleted_mr =
       "AND 0 = ( SELECT COUNT(*) FROM $table as notdel_mr
                    WHERE notdel_mr.$pkey = mostrecent.$pkey
                      AND notdel_mr.history_action = 'delete'
@@ -75,7 +75,7 @@
      AND (    history_action = 'insert'
            OR history_action = 'replace_new'
          )
-     $notcancelled
+     $notdeleted
      AND history_date = ( SELECT MAX(mostrecent.history_date)
                             FROM $table AS mostrecent
                             WHERE mostrecent.$pkey = maintable.$pkey
@@ -83,7 +83,7 @@
 			      AND (    mostrecent.history_action = 'insert'
 			            OR mostrecent.history_action = 'replace_new'
 				  )
-			      $notcancelled_mr
+			      $notdeleted_mr
                         )
 
      ORDER BY $pkey ASC",



More information about the freeside-commits mailing list