X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Finquiry%2Fsupplier_allocation_inquiry.php;h=30b11bfbc08c35a45a83aac5ce95c01a414bf38c;hb=11e485e4a7c5f12c9424713b7330815a9cc5e4ae;hp=b9f7a8417ee3846773c4fccdf4c1c73712ccf080;hpb=b1167086b19280eb898396e3af6470975ff74571;p=fa-stable.git diff --git a/purchasing/inquiry/supplier_allocation_inquiry.php b/purchasing/inquiry/supplier_allocation_inquiry.php index b9f7a841..30b11bfb 100644 --- a/purchasing/inquiry/supplier_allocation_inquiry.php +++ b/purchasing/inquiry/supplier_allocation_inquiry.php @@ -1,7 +1,16 @@ . +***********************************************************************/ +$page_security = 'SA_SUPPLIERALLOC'; +$path_to_root = "../.."; include($path_to_root . "/includes/db_pager.inc"); include($path_to_root . "/includes/session.inc"); @@ -28,7 +37,7 @@ if (isset($_GET['ToDate'])) //------------------------------------------------------------------------------------------------ -start_form(false, true); +start_form(); if (!isset($_POST['supplier_id'])) $_POST['supplier_id'] = get_global_supplier(); @@ -45,7 +54,7 @@ supp_allocations_list_cell("filterType", null); check_cells(_("show settled:"), 'showSettled', null); -submit_cells('RefreshInquiry', _("Search"),'',_('Refresh Inquiry'), true); +submit_cells('RefreshInquiry', _("Search"),'',_('Refresh Inquiry'), 'default'); set_global_supplier($_POST['supplier_id']); @@ -88,7 +97,7 @@ function alloc_link($row) $link = pager_link(_("Allocations"), "/purchasing/allocations/supplier_allocate.php?trans_no=" . - $row["trans_no"]. "&trans_type=" . $row["type"] ); + $row["trans_no"]. "&trans_type=" . $row["type"], ICON_MONEY ); return (($row["type"] == 1 || $row["type"] == 21 || $row["type"] == 22) && (-$row["TotalAmount"] - $row["Allocated"]) > 0) @@ -162,11 +171,11 @@ function fmt_credit($row) $cols = array( _("Type") => array('fun'=>'systype_name'), - _("Number") => array('fun'=>'view_link', 'ord'=>''), + _("#") => array('fun'=>'view_link', 'ord'=>''), _("Reference"), _("Supplier") => array('ord'=>''), _("Supp Reference"), - _("Date") => array('type'=>'date', 'ord'=>'asc'), + _("Date") => array('name'=>'tran_date', 'type'=>'date', 'ord'=>'asc'), _("Due Date") => array('fun'=>'due_date'), _("Currency") => array('align'=>'center'), _("Debit") => array('align'=>'right', 'fun'=>'fmt_debit'), @@ -185,6 +194,11 @@ if ($_POST['supplier_id'] != reserved_words::get_all()) { $table =& new_db_pager('doc_tbl', $sql, $cols); $table->set_marker('check_overdue', _("Marked items are overdue.")); +if (get_post('RefreshInquiry')) { + $table->set_sql($sql); + $table->set_columns($cols); +} +$table->width = "90%"; start_form(); display_db_pager($table);