Added system tale for transaction edition entry points.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 26 Jan 2011 12:46:58 +0000 (12:46 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 26 Jan 2011 12:46:58 +0000 (12:46 +0000)
includes/app_entries.inc [new file with mode: 0644]
includes/session.inc

diff --git a/includes/app_entries.inc b/includes/app_entries.inc
new file mode 100644 (file)
index 0000000..766e2fa
--- /dev/null
@@ -0,0 +1,53 @@
+<?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>.
+***********************************************************************/
+/*
+       This file contains all application entry points.
+*/
+
+/*
+       Transaction editors. First paraneter is transaction number, second (optional) transaction type.
+*/
+$trans_editors = array(
+
+       ST_JOURNAL => "/gl/gl_journal.php?ModifyGL=Yes&trans_no=%d&trans_type=%d",
+       ST_BANKPAYMENT => "/gl/gl_bank.php?ModifyPayment=Yes&trans_no=%d&trans_type=%d",
+       ST_BANKDEPOSIT => "/gl/gl_bank.php?ModifyDeposit=Yes&trans_no=%d&trans_type=%d",
+       //ST_BANKTRANSFER => ,
+
+       ST_SALESINVOICE => "/sales/customer_invoice.php?ModifyInvoice=%d",
+//   11=>
+// free hand (debtors_trans.order_==0)
+//     "/sales/credit_note_entry.php?ModifyCredit=%d"
+// credit invoice
+//     "/sales/customer_credit_invoice.php?ModifyCredit=%d"
+       ST_CUSTCREDIT =>  "/sales/customer_credit_invoice.php?ModifyCredit=%s",
+       //ST_CUSTPAYMENT =>  ,
+       ST_CUSTDELIVERY => "/sales/customer_delivery.php?ModifyDelivery=%d",
+
+       //ST_LOCTRANSFER =>  ,
+       //ST_INVADJUST =>  ,
+
+       ST_PURCHORDER =>  "/purchasing/po_entry_items.php?ModifyOrderNumber=%d",
+       //ST_SUPPINVOICE => ,
+       //ST_SUPPCREDIT =>  ,
+       //ST_SUPPAYMENT =>  ,
+       //ST_SUPPRECEIVE => ,
+
+       //ST_WORKORDER =>  ,
+       //ST_MANUISSUE =>  ,
+       //ST_MANURECEIVE =>  ,
+
+       ST_SALESORDER => "/sales/sales_order_entry.php?ModifyOrderNumber=%d",
+       ST_SALESQUOTE => "/sales/sales_order_entry.php?ModifyQuotationNumber=%d",
+       //ST_COSTUPDATE =>  ,
+       //ST_DIMENSION =>  ,
+);
index 261f8914684262a22c3d842646dcd032c369770e..c761660b4e311a7cd48a884a0ef048bc95048f00 100644 (file)
@@ -228,6 +228,7 @@ $_SESSION['language']->set_language($_SESSION['language']->code);
 include_once($path_to_root . "/includes/access_levels.inc");
 include_once($path_to_root . "/version.php");
 include_once($path_to_root . "/includes/main.inc");
+include_once($path_to_root . "/includes/app_entries.inc");
 
 // Ajax communication object
 $Ajax = new Ajax();