<?php $path_to_root = ".."; $page_security = 'SA_PURCHASEORDER'; include_once $path_to_root . "/purchasing/includes/po_class.inc"; include_once $path_to_root . "/includes/session.inc"; include_once $path_to_root . "/purchasing/includes/purchasing_ui.inc"; include_once $path_to_root . "/purchasing/includes/db/suppliers_db.inc"; include_once $path_to_root . "/reporting/includes/reporting.inc"; set_page_security(@$_SESSION['PO']->trans_type, array(ST_PURCHORDER => 'SA_PURCHASEORDER', ST_SUPPRECEIVE => 'SA_GRN', ST_SUPPINVOICE => 'SA_SUPPLIERINVOICE'), array('NewOrder' => 'SA_PURCHASEORDER', 'ModifyOrderNumber' => 'SA_PURCHASEORDER', 'AddedID' => 'SA_PURCHASEORDER', 'NewGRN' => 'SA_GRN', 'AddedGRN' => 'SA_GRN', 'NewInvoice' => 'SA_SUPPLIERINVOICE', 'AddedPI' => 'SA_SUPPLIERINVOICE')); $js = ''; if ($use_popup_windows) { $js .= get_js_open_window(900, 500); } if ($use_date_picker) { $js .= get_js_date_picker(); } if (isset($_GET['ModifyOrderNumber']) && is_numeric($_GET['ModifyOrderNumber'])) { $_SESSION['page_title'] = _($help_context = "Modify Purchase Order #") . $_GET['ModifyOrderNumber']; create_new_po(ST_PURCHORDER, $_GET['ModifyOrderNumber']); copy_from_cart(); } elseif (isset($_GET['NewOrder'])) { $_SESSION['page_title'] = _($help_context = "Purchase Order Entry"); create_new_po(ST_PURCHORDER, 0); copy_from_cart(); } elseif (isset($_GET['NewGRN'])) { $_SESSION['page_title'] = _($help_context = "Direct GRN Entry"); create_new_po(ST_SUPPRECEIVE, 0); copy_from_cart(); } elseif (isset($_GET['NewInvoice'])) { $_SESSION['page_title'] = _($help_context = "Direct Purchase Invoice Entry");
// // Entry/Modify Sales Quotations // Entry/Modify Sales Order // Entry Direct Delivery // Entry Direct Invoice // $path_to_root = ".."; $page_security = 'SA_SALESORDER'; include_once $path_to_root . "/sales/includes/cart_class.inc"; include_once $path_to_root . "/includes/session.inc"; include_once $path_to_root . "/sales/includes/sales_ui.inc"; include_once $path_to_root . "/sales/includes/ui/sales_order_ui.inc"; include_once $path_to_root . "/sales/includes/sales_db.inc"; include_once $path_to_root . "/sales/includes/db/sales_types_db.inc"; include_once $path_to_root . "/reporting/includes/reporting.inc"; set_page_security(@$_SESSION['Items']->trans_type, array(ST_SALESORDER => 'SA_SALESORDER', ST_SALESQUOTE => 'SA_SALESQUOTE', ST_CUSTDELIVERY => 'SA_SALESDELIVERY', ST_SALESINVOICE => 'SA_SALESINVOICE'), array('NewOrder' => 'SA_SALESORDER', 'ModifyOrderNumber' => 'SA_SALESORDER', 'AddedID' => 'SA_SALESORDER', 'UpdatedID' => 'SA_SALESORDER', 'NewQuotation' => 'SA_SALESQUOTE', 'ModifyQuotationNumber' => 'SA_SALESQUOTE', 'NewQuoteToSalesOrder' => 'SA_SALESQUOTE', 'AddedQU' => 'SA_SALESQUOTE', 'UpdatedQU' => 'SA_SALESQUOTE', 'NewDelivery' => 'SA_SALESDELIVERY', 'AddedDN' => 'SA_SALESDELIVERY', 'NewInvoice' => 'SA_SALESINVOICE', 'AddedDI' => 'SA_SALESINVOICE')); $js = ''; if ($use_popup_windows) { $js .= get_js_open_window(900, 500); } if ($use_date_picker) { $js .= get_js_date_picker(); } if (isset($_GET['NewDelivery']) && is_numeric($_GET['NewDelivery'])) { $_SESSION['page_title'] = _($help_context = "Direct Sales Delivery"); create_cart(ST_CUSTDELIVERY, $_GET['NewDelivery']); } elseif (isset($_GET['NewInvoice']) && is_numeric($_GET['NewInvoice'])) { $_SESSION['page_title'] = _($help_context = "Direct Sales Invoice"); create_cart(ST_SALESINVOICE, $_GET['NewInvoice']); } elseif (isset($_GET['ModifyOrderNumber']) && is_numeric($_GET['ModifyOrderNumber'])) { $help_context = 'Modifying Sales Order';
Copyright (C) FrontAccounting, LLC. Released under the terms of the GNU General Public License, GPL, as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here <http://www.gnu.org/licenses/gpl-3.0.html>. ***********************************************************************/ $path_to_root = "../.."; include_once $path_to_root . "/includes/db_pager.inc"; include_once $path_to_root . "/includes/session.inc"; include_once $path_to_root . "/sales/includes/sales_ui.inc"; include_once $path_to_root . "/reporting/includes/reporting.inc"; $page_security = 'SA_SALESTRANSVIEW'; set_page_security(@$_POST['order_view_mode'], array('OutstandingOnly' => 'SA_SALESDELIVERY', 'InvoiceTemplates' => 'SA_SALESINVOICE'), array('OutstandingOnly' => 'SA_SALESDELIVERY', 'InvoiceTemplates' => 'SA_SALESINVOICE')); if (get_post('type')) { $trans_type = $_POST['type']; } elseif (isset($_GET['type']) && $_GET['type'] == ST_SALESQUOTE) { $trans_type = ST_SALESQUOTE; } else { $trans_type = ST_SALESORDER; } if ($trans_type == ST_SALESORDER) { if (isset($_GET['OutstandingOnly']) && $_GET['OutstandingOnly'] == true) { $_POST['order_view_mode'] = 'OutstandingOnly'; $_SESSION['page_title'] = _($help_context = "Search Outstanding Sales Orders"); } elseif (isset($_GET['InvoiceTemplates']) && $_GET['InvoiceTemplates'] == true) { $_POST['order_view_mode'] = 'InvoiceTemplates'; $_SESSION['page_title'] = _($help_context = "Search Template for Invoicing"); } elseif (isset($_GET['DeliveryTemplates']) && $_GET['DeliveryTemplates'] == true) {