From: Joe Hunt Date: Sun, 28 Jun 2009 08:22:23 +0000 (+0000) Subject: Fixed link bugs in sales order entry and optimized a couple of functions in ui_contro... X-Git-Tag: v2.4.2~19^2~1351 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=5dec41f0d87e407e1c9ffcb8eb63b92e4e471a9b;p=fa-stable.git Fixed link bugs in sales order entry and optimized a couple of functions in ui_controls.inc --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 560ec670..54bf119b 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,11 @@ Legend: ! -> Note $ -> Affected files +28-Jun-2009 Joe Hunt +# Fixed link bugs in sales order entry and optimized a couple of functions in ui_controls.inc +$ /includes/ui/ui_controls.inc + /sales/sales_order_entry.php + 27-Jun-2009 Joe Hunt # Corrections to default COAs. $ /sql/alter2.2.sql diff --git a/includes/ui/ui_controls.inc b/includes/ui/ui_controls.inc index 322296df..559d1751 100644 --- a/includes/ui/ui_controls.inc +++ b/includes/ui/ui_controls.inc @@ -188,20 +188,17 @@ function menu_link($url, $label, $id=null) function submenu_option($title, $url, $id=null) { global $path_to_root; - display_note(menu_link($path_to_root . $url, $title, $id)); - echo '
'; + display_note(menu_link($path_to_root . $url, $title, $id), 0, 1); } function submenu_view($title, $type, $number, $id=null) { - display_note(get_trans_view_str($type, $number, $title, false, 'menu_option', $id)); - echo '
'; + display_note(get_trans_view_str($type, $number, $title, false, 'menu_option', $id), 0, 1); } function submenu_print($title, $type, $number, $id=null) { - display_note(print_document_link($number, $title, true, $type, false, 'menu_option', $id)); - echo '
'; + display_note(print_document_link($number, $title, true, $type, false, 'menu_option', $id), 0, 1); } //----------------------------------------------------------------------------------- diff --git a/sales/sales_order_entry.php b/sales/sales_order_entry.php index e965c493..f19b3cb6 100644 --- a/sales/sales_order_entry.php +++ b/sales/sales_order_entry.php @@ -82,7 +82,7 @@ if (isset($_GET['AddedID'])) { submenu_option(_("Make &Delivery Against This Order"), "/sales/customer_delivery.php?OrderNumber=$order_no"); - submenu_option(_("Enter a &New Order"), $_SERVER['PHP_SELF']."?NewOrder=0"); + submenu_option(_("Enter a &New Order"), "/sales/sales_order_entry.php?NewOrder=0"); display_footer_exit(); @@ -114,17 +114,17 @@ if (isset($_GET['AddedID'])) { submenu_print(_("&Print Delivery Note"), 13, $delivery, 'prtopt'); set_focus('prtopt'); - display_note(get_gl_view_str(13, $delivery, _("View the GL Journal Entries for this Dispatch")),1); + display_note(get_gl_view_str(13, $delivery, _("View the GL Journal Entries for this Dispatch")),0, 1); submenu_option(_("Make &Invoice Against This Delivery"), "/sales/customer_invoice.php?DeliveryNumber=$delivery"); if ((isset($_GET['Type']) && $_GET['Type'] == 1)) submenu_option(_("Enter a New Template &Delivery"), - "inquiry/sales_orders_view.php?DeliveryTemplates=Yes"); + "/sales/inquiry/sales_orders_view.php?DeliveryTemplates=Yes"); else submenu_option(_("Enter a &New Delivery"), - $_SERVER['PHP_SELF']."?NewDelivery=0"); + "/sales/sales_order_entry.php?NewDelivery=0"); display_footer_exit(); @@ -138,14 +138,14 @@ if (isset($_GET['AddedID'])) { submenu_print(_("&Print Sales Invoice"), 10, $invoice, 'prtopt'); set_focus('prtopt'); - display_note(get_gl_view_str(10, $invoice, _("View the GL &Journal Entries for this Invoice")),1); + display_note(get_gl_view_str(10, $invoice, _("View the GL &Journal Entries for this Invoice")),0, 1); if ((isset($_GET['Type']) && $_GET['Type'] == 1)) submenu_option(_("Enter a &New Template Invoice"), - "inquiry/sales_orders_view.php?InvoiceTemplates=Yes"); + "/sales/inquiry/sales_orders_view.php?InvoiceTemplates=Yes"); else submenu_option(_("Enter a &New Direct Invoice"), - $_SERVER['PHP_SELF']."?NewInvoice=0"); + "/sales/sales_order_entry.php?NewInvoice=0"); display_footer_exit(); } else