From b71d9175e95d1a4520674f8adaa0cc46d1659447 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 29 Mar 2023 10:24:38 +0200 Subject: [PATCH] Annoyance 5683: Allow attachments from most needed post-creation option screens. --- purchasing/po_entry_items.php | 11 +++++++---- purchasing/po_receive_items.php | 3 +++ sales/customer_delivery.php | 2 ++ sales/sales_order_entry.php | 6 ++++++ 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/purchasing/po_entry_items.php b/purchasing/po_entry_items.php index 22f38381..f69feb92 100644 --- a/purchasing/po_entry_items.php +++ b/purchasing/po_entry_items.php @@ -96,6 +96,9 @@ if (isset($_GET['AddedID'])) hyperlink_no_params($path_to_root."/purchasing/inquiry/po_search.php", _("Select An &Outstanding Purchase Order")); + hyperlink_params("$path_to_root/admin/attachments.php", _("Add an Attachment"), + "filterType=$trans_type&trans_no=$order_no"); + display_footer_exit(); } elseif (isset($_GET['AddedGRN'])) { @@ -114,11 +117,11 @@ if (isset($_GET['AddedID'])) hyperlink_params("$path_to_root/purchasing/supplier_invoice.php", _("Entry purchase &invoice for this receival"), "New=1"); + hyperlink_params($_SERVER['PHP_SELF'], _("Enter &Another GRN"), "NewGRN=Yes"); + hyperlink_params("$path_to_root/admin/attachments.php", _("Add an Attachment"), "filterType=$trans_type&trans_no=$trans_no"); - hyperlink_params($_SERVER['PHP_SELF'], _("Enter &Another GRN"), "NewGRN=Yes"); - display_footer_exit(); } elseif (isset($_GET['AddedPI'])) { @@ -135,11 +138,11 @@ if (isset($_GET['AddedID'])) hyperlink_params("$path_to_root/purchasing/supplier_payment.php", _("Entry supplier &payment for this invoice"), "trans_type=$trans_type&PInvoice=".$trans_no); + hyperlink_params($_SERVER['PHP_SELF'], _("Enter &Another Direct Invoice"), "NewInvoice=Yes"); + hyperlink_params("$path_to_root/admin/attachments.php", _("Add an Attachment"), "filterType=$trans_type&trans_no=$trans_no"); - hyperlink_params($_SERVER['PHP_SELF'], _("Enter &Another Direct Invoice"), "NewInvoice=Yes"); - display_footer_exit(); } diff --git a/purchasing/po_receive_items.php b/purchasing/po_receive_items.php index 72affe27..d6d2bc51 100644 --- a/purchasing/po_receive_items.php +++ b/purchasing/po_receive_items.php @@ -43,6 +43,9 @@ if (isset($_GET['AddedID'])) hyperlink_no_params("$path_to_root/purchasing/inquiry/po_search.php", _("Select a different &purchase order for receiving items against")); + hyperlink_params("$path_to_root/admin/attachments.php", _("Add an Attachment"), + "filterType=$trans_type&trans_no=$grn"); + display_footer_exit(); } diff --git a/sales/customer_delivery.php b/sales/customer_delivery.php index c634a94e..77ec3136 100644 --- a/sales/customer_delivery.php +++ b/sales/customer_delivery.php @@ -62,6 +62,8 @@ if (isset($_GET['AddedID'])) { hyperlink_params("$path_to_root/sales/inquiry/sales_orders_view.php", _("Select Another Order For Dispatch"), "OutstandingOnly=1"); + hyperlink_params("$path_to_root/admin/attachments.php", _("Add an Attachment"), "filterType=".ST_CUSTDELIVERY."&trans_no=$dispatch_no"); + display_footer_exit(); } elseif (isset($_GET['UpdatedID'])) { diff --git a/sales/sales_order_entry.php b/sales/sales_order_entry.php index dad3c63c..362723d7 100644 --- a/sales/sales_order_entry.php +++ b/sales/sales_order_entry.php @@ -137,6 +137,8 @@ if (isset($_GET['AddedID'])) { submenu_option(_("Enter a &New Order"), "/sales/sales_order_entry.php?NewOrder=0"); + submenu_option(_("Add an Attachment"), "/admin/attachments.php?filterType=".ST_SALESORDER."&trans_no=$order_no"); + display_footer_exit(); } elseif (isset($_GET['UpdatedID'])) { @@ -173,6 +175,8 @@ if (isset($_GET['AddedID'])) { submenu_option(_("Enter a New &Quotation"), "/sales/sales_order_entry.php?NewQuotation=0"); + submenu_option(_("Add an Attachment"), "/admin/attachments.php?filterType=".ST_SALESQUOTE."&trans_no=$order_no"); + display_footer_exit(); } elseif (isset($_GET['UpdatedQU'])) { @@ -218,6 +222,8 @@ if (isset($_GET['AddedID'])) { submenu_option(_("Enter a &New Delivery"), "/sales/sales_order_entry.php?NewDelivery=0"); + submenu_option(_("Add an Attachment"), "/admin/attachments.php?filterType=".ST_CUSTDELIVERY."&trans_no=$delivery"); + display_footer_exit(); } elseif (isset($_GET['AddedDI'])) { -- 2.30.2