- $modify_page = $path_to_root . "/sales/sales_order_entry.php?" . SID . "ModifyOrderNumber=" . $myrow["order_no"];
- $issue_invoice = $path_to_root . "/sales/customer_invoice.php?" . SID . "OrderNumber=" .$myrow["order_no"];
-
- label_cell("<a href='$modify_page'>" . _("Edit") . "</a>");
- label_cell("<a href='$issue_invoice'>" . _("Invoice") . "</a>");
+ $delivery_note = $path_to_root . "/sales/customer_delivery.php?" . SID . "OrderNumber=" .$myrow["order_no"];
+ label_cell("<a href='$delivery_note'>" . _("Dispatch") . "</a>");
+ }
+ elseif ($_POST['order_view_mode']=='InvoiceTemplates')
+ {
+ $select_order= $path_to_root . "/sales/sales_order_entry.php?" . SID . "NewInvoice=" .$myrow["order_no"];
+ label_cell("<a href='$select_order'>" . _("Invoice") . "</a>");
+ }
+ elseif ($_POST['order_view_mode']=='DeliveryTemplates')
+ {
+ $select_order= $path_to_root . "/sales/sales_order_entry.php?" . SID . "NewDelivery=" .$myrow["order_no"];
+ label_cell("<a href='$select_order'>" . _("Delivery") . "</a>");