X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fsales_order_entry.php;h=85985fb11a7c1b9cbed5188bc92879d04dc7fa20;hb=cf523b36717768b5c061accc95f3ba9083b88165;hp=dad3c63c1e846014e232a26c246676a1dd59a384;hpb=2bb32c39a0dc02afea9a67053d03d4b148114d5d;p=fa-stable.git diff --git a/sales/sales_order_entry.php b/sales/sales_order_entry.php index dad3c63c..85985fb1 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'])) { @@ -258,7 +264,7 @@ function copy_to_cart() { $cart = &$_SESSION['Items']; - $cart->reference = $_POST['ref']; + $cart->reference = get_post('ref'); $cart->Comments = $_POST['Comments'];