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 = ".."; $page_security = 'SA_OPEN'; include_once $path_to_root . "/includes/session.inc"; include_once $path_to_root . "/includes/date_functions.inc"; include_once $path_to_root . "/includes/data_checks.inc"; include_once $path_to_root . "/includes/ui.inc"; include_once $path_to_root . "/reporting/includes/reports_classes.inc"; $js = ""; if ($use_date_picker) { $js .= get_js_date_picker(); } add_js_file('reports.js'); page(_($help_context = "Reports and Analysis"), false, false, "", $js); $reports = new BoxReports(); $dim = get_company_pref('use_dimension'); $reports->addReportClass(_('Customer'), RC_CUSTOMER); $reports->addReport(RC_CUSTOMER, 101, _('Customer &Balances'), array(_('Start Date') => 'DATEBEGIN', _('End Date') => 'DATEENDM', _('Customer') => 'CUSTOMERS_NO_FILTER', _('Currency Filter') => 'CURRENCY', _('Suppress Zeros') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION', _('Destination') => 'DESTINATION')); $reports->addReport(RC_CUSTOMER, 115, _('Print '), array(_('Start Date') => 'DATEBEGIN', _('End Date') => 'DATEENDM', _('Customer') => 'CUSTOMERS_NO_FILTER', _('Currency Filter') => 'CURRENCY', _('Suppress Zeros') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION', _('Destination') => 'DESTINATION')); $reports->addReport(RC_CUSTOMER, 102, _('&Aged Customer Analysis'), array(_('End Date') => 'DATE', _('Customer') => 'CUSTOMERS_NO_FILTER', _('Currency Filter') => 'CURRENCY', _('Show Also Allocated') => 'YES_NO', _('Summary Only') => 'YES_NO', _('Suppress Zeros') => 'YES_NO', _('Graphics') => 'GRAPHIC', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION', _('Destination') => 'DESTINATION')); $reports->addReport(RC_CUSTOMER, 103, _('Customer &Detail Listing'), array(_('Activity Since') => 'DATEBEGIN', _('Sales Areas') => 'AREAS', _('Sales Folk') => 'SALESMEN', _('Activity Greater Than') => 'TEXT', _('Activity Less Than') => 'TEXT', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION', _('Destination') => 'DESTINATION')); $reports->addReport(RC_CUSTOMER, 114, _('Sales &Summary Report'), array(_('Start Date') => 'DATEBEGINTAX', _('End Date') => 'DATEENDTAX', _('Tax Id Only') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION', _('Destination') => 'DESTINATION')); $reports->addReport(RC_CUSTOMER, 104, _('&Price Listing'), array(_('Currency Filter') => 'CURRENCY', _('Inventory Category') => 'CATEGORIES', _('Sales Types') => 'SALESTYPES', _('Show Pictures') => 'YES_NO', _('Show GP %') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION', _('Destination') => 'DESTINATION')); $reports->addReport(RC_CUSTOMER, 105, _('&Order Status Listing'), array(_('Start Date') => 'DATEBEGINM', _('End Date') => 'DATEENDM', _('Inventory Category') => 'CATEGORIES', _('Stock Location') => 'LOCATIONS', _('Back Orders Only') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION', _('Destination') => 'DESTINATION')); $reports->addReport(RC_CUSTOMER, 106, _('&Salesman Listing'), array(_('Start Date') => 'DATEBEGINM', _('End Date') => 'DATEENDM', _('Summary Only') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION', _('Destination') => 'DESTINATION')); $reports->addReport(RC_CUSTOMER, 107, _('Print &Invoices'), array(_('From') => 'INVOICE', _('To') => 'INVOICE', _('Currency Filter') => 'CURRENCY', _('email Customers') => 'YES_NO', _('Payment Link') => 'PAYMENT_LINK', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION')); $reports->addReport(RC_CUSTOMER, 113, _('Print &Credit Notes'), array(_('From') => 'CREDIT', _('To') => 'CREDIT', _('Currency Filter') => 'CURRENCY', _('email Customers') => 'YES_NO', _('Payment Link') => 'PAYMENT_LINK', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION')); $reports->addReport(RC_CUSTOMER, 110, _('Print &Deliveries'), array(_('From') => 'DELIVERY', _('To') => 'DELIVERY', _('email Customers') => 'YES_NO', _('Print as Packing Slip') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION'));
$path_to_root = ".."; include $path_to_root . "/includes/db_pager.inc"; include_once $path_to_root . "/includes/session.inc"; include_once $path_to_root . "/includes/date_functions.inc"; include_once $path_to_root . "/includes/ui.inc"; include_once $path_to_root . "/includes/data_checks.inc"; include_once $path_to_root . "/gl/includes/gl_db.inc"; include_once $path_to_root . "/includes/banking.inc"; $js = ""; if ($use_popup_windows) { $js .= get_js_open_window(800, 500); } if ($use_date_picker) { $js .= get_js_date_picker(); } add_js_file('reconcile.js'); page(_($help_context = "Reconcile Bank Account"), false, false, "", $js); check_db_has_bank_accounts(_("There are no bank accounts defined in the system.")); function check_date() { if (!is_date(get_post('reconcile_date'))) { display_error(_("Invalid reconcile date format")); set_focus('reconcile_date'); return false; } return true; } // // This function can be used directly in table pager // if we would like to change page layout. //
include_once $path_to_root . "/includes/session.inc"; include_once $path_to_root . "/includes/date_functions.inc"; include_once $path_to_root . "/includes/ui.inc"; include_once $path_to_root . "/includes/banking.inc"; include_once $path_to_root . "/includes/data_checks.inc"; include_once $path_to_root . "/sales/includes/sales_db.inc"; //include_once($path_to_root . "/sales/includes/ui/cust_alloc_ui.inc"); include_once $path_to_root . "/reporting/includes/reporting.inc"; $js = ""; if ($use_popup_windows) { $js .= get_js_open_window(900, 500); } if ($use_date_picker) { $js .= get_js_date_picker(); } add_js_file('payalloc.js'); page(_($help_context = "Customer Payment Entry"), false, false, "", $js); //---------------------------------------------------------------------------------------------- check_db_has_customers(_("There are no customers defined in the system.")); check_db_has_bank_accounts(_("There are no bank accounts defined in the system.")); //---------------------------------------------------------------------------------------- if (isset($_GET['customer_id'])) { $_POST['customer_id'] = $_GET['customer_id']; } if (!isset($_POST['bank_account'])) { // first page call $_SESSION['alloc'] = new allocation(ST_CUSTPAYMENT, 0); if (isset($_GET['SInvoice'])) { // get date and supplier $inv = get_customer_trans($_GET['SInvoice'], ST_SALESINVOICE); if ($inv) {
<?php require_once "inc/age_classes.php"; require_once 'inc/relay.inc.php'; require_once "inc/helper_functions.php"; add_js_file("relay.js"); require_once "inc/head.inc.php"; require_once "namespace/" . $_SESSION['language'] . "/strings.php"; $relno = 0; //get_next_startnr($_SESSION['meeting_id']); ?> <script type="text/javascript"> Relay.factory('Parameters', function () { 'use strict'; var parameters = { meetingId: <?php echo $_SESSION['meeting_id']; ?> }; return { parameters: parameters }; }); var meeting_id = <?php echo isset($_SESSION['meeting_id']) ? $_SESSION['meeting_id'] : 0; ?> ; var relno = <?php echo isset($_GET['relno']) ? intval($_GET['relno']) : $relno;
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here <http://www.gnu.org/licenses/gpl-3.0.html>. ***********************************************************************/ $page_security = 'SA_SALESALLOC'; $path_to_root = "../.."; include $path_to_root . "/includes/ui/allocation_cart.inc"; include_once $path_to_root . "/includes/session.inc"; include_once $path_to_root . "/includes/data_checks.inc"; include_once $path_to_root . "/sales/includes/sales_ui.inc"; include_once $path_to_root . "/sales/includes/sales_db.inc"; //include_once($path_to_root . "/sales/includes/ui/cust_alloc_ui.inc"); $js = ""; if ($use_popup_windows) { $js .= get_js_open_window(900, 500); } add_js_file('allocate.js'); page(_($help_context = "Allocate Customer Payment or Credit Note"), false, false, "", $js); //-------------------------------------------------------------------------------- function clear_allocations() { if (isset($_SESSION['alloc'])) { unset($_SESSION['alloc']->allocs); unset($_SESSION['alloc']); } //session_register('alloc'); } //-------------------------------------------------------------------------------- function edit_allocations_for_transaction($type, $trans_no) { global $systypes_array; $cart = $_SESSION['alloc'];
<?php /********************************************************************** 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>. ***********************************************************************/ $page_security = 'SA_OPEN'; $path_to_root = ".."; include $path_to_root . "/includes/session.inc"; add_js_file('login.js'); include $path_to_root . "/includes/page/header.inc"; page_header(_("Logout"), true, false, ''); echo "<table width='100%' border='0'>\n <tr>\n\t<td align='center'><img src='{$path_to_root}/themes/default/images/logo_frontaccounting.png' alt='FrontAccounting' width='250' height='50' onload='fixPNG(this)' /></td>\n </tr>\n <tr>\n <td> </td>\n </tr>\n <tr>\n <td><div align='center'><font size=2>"; echo _("Thank you for using") . " "; echo "<strong>{$app_title} {$version}</strong>"; echo "</font></div></td>\n </tr>\n <tr>\n <td> </td>\n </tr>\n <tr>\n <td><div align='center'>"; echo "<a href='{$path_to_root}/index.php'><b>" . _("Click here to Login Again.") . "</b></a>"; echo "</div></td>\n </tr>\n</table>\n<br>\n"; end_page(false, true); session_unset(); @session_destroy(); ?>
include_once $path_to_root . "/includes/banking.inc"; include_once $path_to_root . "/includes/data_checks.inc"; include_once $path_to_root . "/purchasing/includes/purchasing_db.inc"; include_once $path_to_root . "/reporting/includes/reporting.inc"; include_once $path_to_root . "/includes/ui.inc"; include_once $path_to_root . "/purchasing/includes/ui/custom_ui.inc"; include_once $path_to_root . "/purchasing/includes/ui/po_ui.inc"; include_once $path_to_root . "/purchasing/includes/ui/grn_ui.inc"; $js = ""; if ($use_popup_windows) { $js .= get_js_open_window(900, 500); } if ($use_date_picker) { $js .= get_js_date_picker(); } add_js_file('custom_payalloc.js'); page(_($help_context = "Supplier Payment Entry"), false, false, "", $js); if (isset($_GET['supplier_id'])) { $_POST['supplier_id'] = $_GET['supplier_id']; } //---------------------------------------------------------------------------------------- check_db_has_suppliers(_("There are no suppliers defined in the system.")); check_db_has_bank_accounts(_("There are no bank accounts defined in the system.")); //---------------------------------------------------------------------------------------- if (!isset($_POST['supplier_id'])) { $_POST['supplier_id'] = get_global_supplier(false); } if (!isset($_POST['DatePaid'])) { $_POST['DatePaid'] = new_doc_date(); if (!is_date_in_fiscalyear($_POST['DatePaid'])) { $_POST['DatePaid'] = end_fiscalyear();
<?php /********************************************************************** 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>. ***********************************************************************/ $page_security = 'SA_BUDGETENTRY'; $path_to_root = ".."; include_once $path_to_root . "/includes/session.inc"; add_js_file('budget.js'); page(_($help_context = "Budget Entry")); include_once $path_to_root . "/includes/ui.inc"; include_once $path_to_root . "/gl/includes/gl_db.inc"; include_once $path_to_root . "/includes/data_checks.inc"; include_once $path_to_root . "/admin/db/fiscalyears_db.inc"; check_db_has_gl_account_groups(_("There are no account groups defined. Please define at least one account group before entering accounts.")); //------------------------------------------------------------------------------------- if (isset($_POST['add']) || isset($_POST['delete'])) { begin_transaction(); for ($i = 0, $da = $_POST['begin']; date1_greater_date2($_POST['end'], $da); $i++) { if (isset($_POST['add'])) { add_update_gl_budget_trans($da, $_POST['account'], $_POST['dim1'], $_POST['dim2'], input_num('amount' . $i)); } else { delete_gl_budget_trans($da, $_POST['account'], $_POST['dim1'], $_POST['dim2']); }