Index: openacs-4/packages/ecommerce/www/admin/orders/gift-certificates-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/orders/gift-certificates-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/ecommerce/www/admin/orders/gift-certificates-oracle.xql 23 Jul 2001 05:50:06 -0000 1.1
@@ -0,0 +1,28 @@
+
+
+
+ oracle8.1.6
+
+
+
+ and sysdate-g.issue_date <= 1
+
+
+
+
+
+
+ and sysdate-g.issue_date <= 7
+
+
+
+
+
+
+ and months_between(sysdate,g.issue_date) <= 1
+
+
+
+
+
+
Index: openacs-4/packages/ecommerce/www/admin/orders/gift-certificates-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/orders/gift-certificates-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/ecommerce/www/admin/orders/gift-certificates-postgresql.xql 23 Jul 2001 05:50:06 -0000 1.1
@@ -0,0 +1,27 @@
+
+
+
+ postgresql7.1
+
+
+
+ and now()-g.issue_date <= timespan_days(1)
+
+
+
+
+
+
+ and now()-g.issue_date <= timespan_days(7)
+
+
+
+
+
+
+ and now()-g.issue_date <= '1 month'::interval
+
+
+
+
+
Index: openacs-4/packages/ecommerce/www/admin/orders/gift-certificates.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/orders/gift-certificates.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/ecommerce/www/admin/orders/gift-certificates.tcl 20 Apr 2001 20:51:14 -0000 1.1
+++ openacs-4/packages/ecommerce/www/admin/orders/gift-certificates.tcl 23 Jul 2001 05:50:06 -0000 1.2
@@ -78,11 +78,14 @@
}
if { $view_issue_date == "last_24" } {
- set issue_date_query_bit "and sysdate-g.issue_date <= 1"
+ #set issue_date_query_bit "and sysdate-g.issue_date <= 1"
+ set issue_date_query_bit [db_map last_24]
} elseif { $view_issue_date == "last_week" } {
- set issue_date_query_bit "and sysdate-g.issue_date <= 7"
+ #set issue_date_query_bit "and sysdate-g.issue_date <= 7"
+ set issue_date_query_bit [db_map last_week]
} elseif { $view_issue_date == "last_month" } {
- set issue_date_query_bit "and months_between(sysdate,g.issue_date) <= 1"
+ #set issue_date_query_bit "and months_between(sysdate,g.issue_date) <= 1"
+ set issue_date_query_bit [db_map last_month]
} else {
set issue_date_query_bit ""
}