Added attachment link after most popular entry forms.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 26 May 2011 08:06:31 +0000 (10:06 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 26 May 2011 08:06:31 +0000 (10:06 +0200)
gl/gl_bank.php
gl/gl_journal.php
inventory/adjustments.php
manufacturing/work_order_entry.php
sales/credit_note_entry.php
sales/customer_credit_invoice.php
sales/customer_invoice.php
sales/sales_order_entry.php

index eeae098bcc5707a44a7b9c9f6c274cb7350d1987..7e16805c4893f15139a5f325a75e050d5d139a9b 100644 (file)
@@ -77,6 +77,8 @@ if (isset($_GET['AddedID']))
 
        hyperlink_params($_SERVER['PHP_SELF'], _("Enter A &Deposit"), "NewDeposit=yes");
 
+       hyperlink_params("$path_to_root/admin/attachments.php", _("Add an Attachment"), "filterType=$trans_type&trans_no=$trans_no");
+
        display_footer_exit();
 }
 
index bc3e15e963286245665aec8bcee31404c28b80cf..be1dc607c0c16a50c5055df236cfde030b1cfd83 100644 (file)
@@ -58,6 +58,8 @@ if (isset($_GET['AddedID']))
        reset_focus();
        hyperlink_params($_SERVER['PHP_SELF'], _("Enter &New Journal Entry"), "NewJournal=Yes");
 
+       hyperlink_params("$path_to_root/admin/attachments.php", _("Add an Attachment"), "filterType=$trans_type&trans_no=$trans_no");
+
        display_footer_exit();
 } elseif (isset($_GET['UpdatedID'])) 
 {
index 205a3cb247c66bfae80b5a505e1e165b70e6446f..cba646365a9e7e7e91688e09f77f3d31881edb3c 100644 (file)
@@ -47,6 +47,8 @@ if (isset($_GET['AddedID']))
 
        hyperlink_no_params($_SERVER['PHP_SELF'], _("Enter &Another Adjustment"));
 
+       hyperlink_params("$path_to_root/admin/attachments.php", _("Add an Attachment"), "filterType=$trans_type&trans_no=$trans_no");
+
        display_footer_exit();
 }
 //--------------------------------------------------------------------------------------------------
index 37bef20763d131a9caaa99ca46fa0031bd160379..ce96abaa43743aa1647798fd634fb82898e5ab61 100644 (file)
@@ -65,6 +65,7 @@ if (isset($_GET['AddedID']))
        display_note(get_gl_view_str($stype, $id, _("View the GL Journal Entries for this Work Order")), 1);
        $ar = array('PARAM_0' => $_GET['date'], 'PARAM_1' => $_GET['date'], 'PARAM_2' => $stype); 
        display_note(print_link(_("Print the GL Journal Entries for this Work Order"), 702, $ar), 1);
+               hyperlink_params("$path_to_root/admin/attachments.php", _("Add an Attachment"), "filterType=$stype&trans_no=$id");
        }
        
        safe_exit();
index 56e81a1dbfee6cd6928ee8c1e695676ec81f87fa..de84ba09f8e0133846d7ae231766d38ed8b83115 100644 (file)
@@ -74,6 +74,8 @@ if (isset($_GET['AddedID'])) {
 
        hyperlink_params($_SERVER['PHP_SELF'], _("Enter Another &Credit Note"), "NewCredit=yes");
 
+       hyperlink_params("$path_to_root/admin/attachments.php", _("Add an Attachment"), "filterType=$trans_type&trans_no=$credit_no");
+
        display_footer_exit();
 } else
        check_edit_conflicts();
index ff6e45797e0c14534051686c21f71a594f42dfa1..18318e566db3d9f945123e6a6a156c4596df7cfa 100644 (file)
@@ -59,6 +59,8 @@ if (isset($_GET['AddedID'])) {
 
        display_note(get_gl_view_str($trans_type, $credit_no, _("View the GL &Journal Entries for this Credit Note")),1);
 
+       hyperlink_params("$path_to_root/admin/attachments.php", _("Add an Attachment"), "filterType=$trans_type&trans_no=$credit_no");
+
        display_footer_exit();
 
 } elseif (isset($_GET['UpdatedID'])) {
index ee15814a7e33eafc26d11ca39d6d7cf2be7bfb49..4068fea53c36f125e4035c0e0764d743a377cc47 100644 (file)
@@ -63,6 +63,8 @@ if (isset($_GET['AddedID'])) {
 
        hyperlink_params("$path_to_root/sales/inquiry/sales_deliveries_view.php", _("Select Another &Delivery For Invoicing"), "OutstandingOnly=1");
 
+       hyperlink_params("$path_to_root/admin/attachments.php", _("Add an Attachment"), "filterType=$trans_type&trans_no=$invoice_no");
+
        display_footer_exit();
 
 } elseif (isset($_GET['UpdatedID']))  {
index 4d86b18dd327d06216524590c53b6cf3deee11ef..ff37813a64fbe31518d9e62e3a6441014ef965b9 100644 (file)
@@ -223,6 +223,8 @@ if (isset($_GET['AddedID'])) {
                submenu_option(_("Enter a &New Direct Invoice"),
                        "/sales/sales_order_entry.php?NewInvoice=0");
 
+       submenu_option(_("Add an Attachment"), "/admin/attachments.php?filterType=".ST_SALESINVOICE."&trans_no=$invoice");
+
        display_footer_exit();
 } else
        check_edit_conflicts();