Fixed error on inserting refs with single quotes.
[fa-stable.git] / gl / inquiry / journal_inquiry.php
index fee17602ebda89e9532a7dd8cd838fc4dbe2b934..1c1405137dee9df5e0c806d08c9adc65cbc5fbf5 100644 (file)
@@ -84,14 +84,14 @@ $editors = array(
 //     1=> Bank Payment,
 //     2=> Bank Deposit,
 //     4=> Funds Transfer,
-   10=> "/sales/customer_invoice.php?ModifyInvoice=%d",
+   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"
 //      12=> Customer Payment,
-   13=> "/sales/customer_delivery.php?ModifyDelivery=%d",
+   ST_CUSTDELIVERY => "/sales/customer_delivery.php?ModifyDelivery=%d",
 //   16=> Location Transfer,
 //   17=> Inventory Adjustment,
 //   20=> Supplier Invoice,
@@ -165,10 +165,6 @@ if (!check_value('AlsoClosed')) {
 
 $table =& new_db_pager('journal_tbl', $sql, $cols);
 
-if (get_post('Search')) {
-       $table->set_sql($sql);
-       $table->set_columns($cols);
-}
 $table->width = "80%";
 start_form();