Index: openacs-4/packages/ecommerce/www/admin/orders/fulfillment.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/orders/fulfillment.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/www/admin/orders/fulfillment.adp 18 Aug 2008 01:36:41 -0000 1.1 @@ -0,0 +1,12 @@ + + @title;noquote@ + @context;noquote@ +

@title@

+ +

+These items are needed in +order to fulfill all outstanding orders. +

+Note: Orders over 28 days old cannot be fulfilled through shopping cart, because gateways usually drop the transaction_id associated with the order. +

+@orders_select_html;noquote@ Index: openacs-4/packages/ecommerce/www/admin/orders/fulfillment.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/orders/fulfillment.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/ecommerce/www/admin/orders/fulfillment.tcl 16 Aug 2008 13:09:15 -0000 1.4 +++ openacs-4/packages/ecommerce/www/admin/orders/fulfillment.tcl 18 Aug 2008 01:36:41 -0000 1.5 @@ -11,66 +11,43 @@ ad_require_permission [ad_conn package_id] admin -doc_body_append "[ad_admin_header "Order Fulfillment"] +set title "Order Fulfillment" +set context [list [list index "Orders / Shipments / Refunds"] $title] -

Order Fulfillment

- -[ad_context_bar [list "../" "Ecommerce([ec_system_name])"] [list "index" "Orders"] "Fulfillment"] - -

-These items are needed in order to fulfill all outstanding orders. -Orders over 28 days old cannot be fulfilled through shopping cart, because gateways usually drop the transaction_id associated with the order. -

-" - set old_order_state "" set old_shipping_method "" set pre_auth_stale_date [clock format [clock scan "4 weeks ago"] -format "%Y-%m-%d"] -db_foreach orders_select " - select o.order_id, o.confirmed_date, o.order_state, o.shipping_method, +set orders_select_html "" +db_foreach orders_select "select o.order_id, o.confirmed_date, o.order_state, o.shipping_method, u.first_names, u.last_name, u.user_id from ec_orders_shippable o, cc_users u where o.user_id=u.user_id - order by o.shipping_method, o.order_state, o.order_id -" { + order by o.shipping_method, o.order_state, o.order_id" { if { $shipping_method != $old_shipping_method } { - if { $old_shipping_method != "" } { - doc_body_append " - " - } - - doc_body_append "

[string toupper "$shipping_method shipping"]

-
" + if { $old_shipping_method != "" } { + append orders_select_html "" + } + append orders_select_html "

[string toupper "$shipping_method shipping"]

" } - if { $order_state != $old_order_state || $shipping_method != $old_shipping_method } { - if { $shipping_method == $old_shipping_method } { - doc_body_append "" - } - doc_body_append "Orders in state '$order_state' - " + } + append orders_select_html "

Orders in state '$order_state'

-
- " + append orders_select_html "" } - -doc_body_append "[ad_admin_footer] -"