ref_cells(_("#:"), 'OrderNumber');
if ($_POST['order_view_mode'] != 'DeliveryTemplates' && $_POST['order_view_mode'] != 'InvoiceTemplates')
{
- date_cells(_("from:"), 'OrdersAfterDate', null, -30);
- date_cells(_("to:"), 'OrdersToDate', null, 1);
+ date_cells(_("from:"), 'OrdersAfterDate', '', null, -30);
+ date_cells(_("to:"), 'OrdersToDate', '', null, 1);
}
locations_list_cells(_("Location:"), 'StockLocation', null, true);
start_table("$table_style colspan=6 width=95%");
$th = array(_("Order #"), _("Customer"), _("Branch"), _("Cust Order #"), _("Order Date"),
- _("Required By"), _("Delivery To"), _("Order Total"), _("Currency"), _("Tmpl"),"", "");
+ _("Required By"), _("Delivery To"), _("Order Total"), _("Currency"), "");
if($_POST['order_view_mode']=='InvoiceTemplates' || $_POST['order_view_mode']=='DeliveryTemplates')
{
$th[3] = _('Description');
- }
+ } elseif ($_POST['order_view_mode'] != 'OutstandingOnly') {
+ $th[9] = _('Tmpl');
+ $th[] =''; $th[] ='';
+ }
table_header($th);
start_form();
else
{
echo "<td><input ".($myrow["type"]==1 ? 'checked' : '')." type='checkbox' name='chgtpl" .$myrow["order_no"]. "' value='1'
- onclick='forms[1].ChangeTmpl.value= this.name.substr(6);
+ onclick='this.form.ChangeTmpl.value= this.name.substr(6);
this.form.submit();' ></td>";
$modify_page = $path_to_root . "/sales/sales_order_entry.php?" . SID . "ModifyOrderNumber=" . $myrow["order_no"];