Code cleaning
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 9 Jun 2009 14:33:18 +0000 (14:33 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 9 Jun 2009 14:33:18 +0000 (14:33 +0000)
sales/customer_delivery.php
sales/sales_order_entry.php

index 8ed9ad275015379b4cc2c56f14e04a26039fee16..97f0459003acd6d3fbcf214d4f40e1d7e32a1063 100644 (file)
@@ -47,11 +47,11 @@ page($_SESSION['page_title'], false, false, "", $js);
 if (isset($_GET['AddedID'])) {
        $dispatch_no = $_GET['AddedID'];
 
-       display_notification(_("Dispatch processed:") . ' '.$_GET['AddedID'], true);
+       display_notification_centered(sprintf(_("Delivery # %d has been entered."),$dispatch_no));
 
-       display_note(get_customer_trans_view_str(13, $dispatch_no, _("View this dispatch")), 0, 1);
+       display_note(get_customer_trans_view_str(13, $dispatch_no, _("&View This Delivery")), 0, 1);
 
-       display_note(print_document_link($dispatch_no, _("Print this delivery"), true, 13));
+       display_note(print_document_link($dispatch_no, _("&Print Delivery Note"), true, 13));
 
        display_note(get_gl_view_str(13, $dispatch_no, _("View the GL Journal Entries for this Dispatch")),1);
 
index f6cf66d37cd664b7d8eac9cc498ebec69d8818ed..cb77b3f631889e3214bd6d109a02fe21d528b96b 100644 (file)
@@ -108,10 +108,12 @@ if (isset($_GET['AddedID'])) {
 
        display_notification_centered(sprintf(_("Delivery # %d has been entered."),$delivery));
 
-       display_note(get_trans_view_str(13, $delivery, _("&View This Delivery")));
-       echo '<br>';
+       display_note(get_trans_view_str(13, $delivery, _("&View This Delivery")), 0, 1);
+
        display_note(print_document_link($delivery, _("&Print Delivery Note"), true, 13));
 
+       display_note(get_gl_view_str(13, $delivery, _("View the GL Journal Entries for this Dispatch")),1);
+
        hyperlink_params($path_to_root . "/sales/customer_invoice.php",
        _("Make &Invoice Against This Delivery"), "DeliveryNumber=$delivery");
 
@@ -132,6 +134,8 @@ if (isset($_GET['AddedID'])) {
        echo '<br>';
        display_note(print_document_link($invoice, _("&Print Sales Invoice"), true, 10));
 
+       display_note(get_gl_view_str(10, $invoice, _("View the GL &Journal Entries for this Invoice")),1);
+
        if ((isset($_GET['Type']) && $_GET['Type'] == 1))
        hyperlink_params("inquiry/sales_orders_view.php",
                _("Enter a &New Template Invoice"), "InvoiceTemplates=Yes");