Index: openacs-4/packages/ecommerce/www/admin/orders/index.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/orders/index.xql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/ecommerce/www/admin/orders/index.xql 10 Jul 2001 20:33:53 -0000 1.1 +++ openacs-4/packages/ecommerce/www/admin/orders/index.xql 29 Jan 2002 00:11:46 -0000 1.2 @@ -1,78 +1,65 @@ - - - -select - sum(one_if_within_n_days(confirmed_date,1)) as n_o_in_last_24_hours, - sum(one_if_within_n_days(confirmed_date,7)) as n_o_in_last_7_days -from ec_orders_reportable + + + select + sum(one_if_within_n_days(confirmed_date,1)) as n_o_in_last_24_hours, + sum(one_if_within_n_days(confirmed_date,7)) as n_o_in_last_7_days + from ec_orders_reportable + + - - + + + select + sum(one_if_within_n_days(issue_date,1)) as n_g_in_last_24_hours, + sum(one_if_within_n_days(issue_date,7)) as n_g_in_last_7_days + from ec_gift_certificates_purchased + + - - - - -select - sum(one_if_within_n_days(issue_date,1)) as n_g_in_last_24_hours, - sum(one_if_within_n_days(issue_date,7)) as n_g_in_last_7_days -from ec_gift_certificates_purchased + + + select + sum(one_if_within_n_days(issue_date,1)) as n_gi_in_last_24_hours, + sum(one_if_within_n_days(issue_date,7)) as n_gi_in_last_7_days + from ec_gift_certificates_issued + + - - + + + select + sum(one_if_within_n_days(shipment_date,1)) as n_s_in_last_24_hours, + sum(one_if_within_n_days(shipment_date,7)) as n_s_in_last_7_days + from ec_shipments + + + + + + select + sum(one_if_within_n_days(refund_date,1)) as n_r_in_last_24_hours, + sum(one_if_within_n_days(refund_date,7)) as n_r_in_last_7_days + from ec_refunds + + + + + + select count(*) + from ec_orders_shippable + where shipping_method='standard' + + - - - - -select - sum(one_if_within_n_days(issue_date,1)) as n_gi_in_last_24_hours, - sum(one_if_within_n_days(issue_date,7)) as n_gi_in_last_7_days -from ec_gift_certificates_issued - - - - - - - - -select - sum(one_if_within_n_days(shipment_date,1)) as n_s_in_last_24_hours, - sum(one_if_within_n_days(shipment_date,7)) as n_s_in_last_7_days -from ec_shipments - - - - - - - - -select - sum(one_if_within_n_days(refund_date,1)) as n_r_in_last_24_hours, - sum(one_if_within_n_days(refund_date,7)) as n_r_in_last_7_days -from ec_refunds - - - - - - - - select count(*) from ec_orders_shippable where shipping_method='standard' - - - - - - - select count(*) from ec_orders_shippable where shipping_method='standard' - - - - + + + select count(*) + from ec_orders_shippable + where shipping_method='express' + + +