Index: temp/trunk/html/admin/batch/daily.php
===================================================================
--- temp/trunk/html/admin/batch/daily.php	(revision 4984)
+++ temp/trunk/html/admin/batch/daily.php	(revision 4985)
@@ -227,9 +227,7 @@
 	$base_where = "WHERE (create_date BETWEEN ? AND ?) AND customer_id <> 0 AND del_flg = 0 ";
 
-	$end_date = date("Y/m/d",strtotime("-10 year"));
-	$start_date = date("Y/m/d",strtotime("1 day" ,strtotime($end_date)));
-	
 	$end_date = date("Y/m/d", time()); 
-	$start_date = date("Y/m/d",strtotime("-10 year"));
+	$start_date = date("Y/m/d",strtotime("-10 year" ,strtotime($end_date)));
+	$end_date = date("Y/m/d",strtotime("1 day" ,strtotime($end_date)));
 	$start_age = null;
 	$end_age = null;
@@ -240,5 +238,5 @@
 		if($i < $age_loop) {
 			$end_age = $start_age+9;
-			$where = $where . " AND order_birth <= cast('$end_date' as date)";
+			$where = $where . " AND order_birth < cast('$end_date' as date)";
 		}else{
 			$end_age = 999;
@@ -246,5 +244,5 @@
 		lfBatOrderAgeSub($sql . $where, $start, $end, $start_age, $end_age, 1);
 		$end_date = date("Y/m/d",strtotime("1 day" ,strtotime($start_date)));
-		$start_date = date("Y/m/d",strtotime("-10 year",strtotime($end_date)));
+		$start_date = date("Y/m/d",strtotime("-10 year",strtotime($start_date)));
 	}
 
