From 0952c82fc90f8ff443335d371ba32bbea6aba946 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 26 May 2011 10:06:31 +0200 Subject: [PATCH] Added attachment link after most popular entry forms. --- gl/gl_bank.php | 2 ++ gl/gl_journal.php | 2 ++ inventory/adjustments.php | 2 ++ manufacturing/work_order_entry.php | 1 + sales/credit_note_entry.php | 2 ++ sales/customer_credit_invoice.php | 2 ++ sales/customer_invoice.php | 2 ++ sales/sales_order_entry.php | 2 ++ 8 files changed, 15 insertions(+) diff --git a/gl/gl_bank.php b/gl/gl_bank.php index eeae098b..7e16805c 100644 --- a/gl/gl_bank.php +++ b/gl/gl_bank.php @@ -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(); } diff --git a/gl/gl_journal.php b/gl/gl_journal.php index bc3e15e9..be1dc607 100644 --- a/gl/gl_journal.php +++ b/gl/gl_journal.php @@ -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'])) { diff --git a/inventory/adjustments.php b/inventory/adjustments.php index 205a3cb2..cba64636 100644 --- a/inventory/adjustments.php +++ b/inventory/adjustments.php @@ -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(); } //-------------------------------------------------------------------------------------------------- diff --git a/manufacturing/work_order_entry.php b/manufacturing/work_order_entry.php index 37bef207..ce96abaa 100644 --- a/manufacturing/work_order_entry.php +++ b/manufacturing/work_order_entry.php @@ -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(); diff --git a/sales/credit_note_entry.php b/sales/credit_note_entry.php index 56e81a1d..de84ba09 100644 --- a/sales/credit_note_entry.php +++ b/sales/credit_note_entry.php @@ -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(); diff --git a/sales/customer_credit_invoice.php b/sales/customer_credit_invoice.php index ff6e4579..18318e56 100644 --- a/sales/customer_credit_invoice.php +++ b/sales/customer_credit_invoice.php @@ -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'])) { diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index ee15814a..4068fea5 100644 --- a/sales/customer_invoice.php +++ b/sales/customer_invoice.php @@ -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'])) { diff --git a/sales/sales_order_entry.php b/sales/sales_order_entry.php index 4d86b18d..ff37813a 100644 --- a/sales/sales_order_entry.php +++ b/sales/sales_order_entry.php @@ -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(); -- 2.30.2