X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fallocations%2Fcustomer_allocation_main.php;h=ad03135337284fbcadd5dc73d1d688888f2089ab;hb=2a0f29497517eca1cde8b2832da5761edefb2268;hp=5e7d292a872f817b2bc516412fa4fa6105f9c882;hpb=f018643dc04ce130f1729e16a65458af443308a0;p=fa-stable.git diff --git a/sales/allocations/customer_allocation_main.php b/sales/allocations/customer_allocation_main.php index 5e7d292a..ad031353 100644 --- a/sales/allocations/customer_allocation_main.php +++ b/sales/allocations/customer_allocation_main.php @@ -9,8 +9,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$path_to_root="../.."; -$page_security = 3; +$page_security = 'SA_SALESALLOC'; +$path_to_root = "../.."; include($path_to_root . "/includes/db_pager.inc"); include_once($path_to_root . "/includes/session.inc"); @@ -22,7 +22,6 @@ if ($use_popup_windows) page(_("Customer Allocations"), false, false, "", $js); //-------------------------------------------------------------------------------- -set_editor('customer', 'customer_id' , 'ShowSettled'); start_form(); /* show all outstanding receipts and credits to be allocated */ @@ -43,7 +42,7 @@ start_form(); set_global_customer($_POST['customer_id']); - if (isset($_POST['customer_id']) && ($_POST['customer_id'] == reserved_words::get_all())) + if (isset($_POST['customer_id']) && ($_POST['customer_id'] == ALL_TEXT)) { unset($_POST['customer_id']); } @@ -65,7 +64,9 @@ start_form(); //-------------------------------------------------------------------------------- function systype_name($dummy, $type) { - return systypes::name($type); + global $systypes_array; + + return $systypes_array[$type]; } function trans_view($trans) @@ -113,10 +114,6 @@ if (isset($_POST['customer_id'])) { $table =& new_db_pager('alloc_tbl', $sql, $cols); $table->set_marker('check_settled', _("Marked items are settled."), 'settledbg', 'settledfg'); -if (get_post('_ShowSettled_update') || get_post('_customer_id_update')) { - $table->set_sql($sql); - $table->set_columns($cols); -} $table->width = "75%"; display_db_pager($table);