From: Iain Patterson Date: Mon, 13 May 2013 10:01:36 +0000 (-0400) Subject: Show order state in summary line. X-Git-Tag: 2013-05-13~5 X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=a646a2cfbd63d70043e60d88afff0add11ad7e81;p=readifood.git Show order state in summary line. Include order's current state in order summary. --- diff --git a/lib/functions.php b/lib/functions.php index 2b35663..7a02b2a 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -277,7 +277,10 @@ } function get_order_summary($order) { - $ret = "Order " . $order->getStrongLink($order->getId()) . ": " . get_order_displayname($order); + $ret = "Order "; + $order_state = get_order_state($order); + if ($order_state) $ret = "" . ucfirst(get_order_state_string($order_state)) . " order "; + $ret .= $order->getStrongLink($order->getId()) . ": " . get_order_displayname($order); if (check_admin(1)) $ret .= " " . $order->getDeleteLink();