- date_row(_("Date:"), 'OrderDate');
-
-// if (!isset($_POST['tax_group_id']) || $_POST['tax_group_id'] == "")
-// $_POST['tax_group_id'] = $order->tax_group_id;
-// tax_groups_list_row(_("Tax Group:"), 'tax_group_id', null, true);
- shippers_list_row(_("Shipping Company:"), 'ShipperID', $order->ship_via);
-
+ date_row(_("Date:"), 'OrderDate', '', null, 0, 0, 0, null, true);
+ if (isset($_POST['_OrderDate_changed'])) {
+ $change_prices = 1;
+ $Ajax->activate('currency');
+ }
+ // 2008-11-12 Joe Hunt added dimensions
+ $dim = get_company_pref('use_dimension');
+ if ($dim > 0)
+ {
+ if ($order->dimension_id != $_POST['dimension_id']) {
+ $order->dimension_id = $_POST['dimension_id'];
+ $Ajax->activate('dimension_id');
+ }
+ dimensions_list_row(_("Dimension:"), 'dimension_id', null, true, ' ', false, 1, true);
+ if ($dim > 1)
+ {
+ if ($order->dimension2_id != $_POST['dimension2_id']) {
+ $order->dimension2_id = $_POST['dimension2_id'];
+ $Ajax->activate('dimension2_id');
+ }
+ dimensions_list_row(_("Dimension")." 2:", 'dimension2_id', null, true, ' ', false, 2, true);
+ }
+ }
+ if ($dim < 2)
+ hidden('dimension2_id', 0);
+ if ($dim < 1)
+ hidden('dimension_id', 0);
+