X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Finquiry%2Fsupplier_allocation_inquiry.php;h=4ede5ca03c68040dd6b05c96d2e10013705686d0;hb=e8ae3516539a520338117f25d401c0fc234973a4;hp=3b3de54477edd346b60abbd48cdedd1a91cbd8a1;hpb=1bb2f13025c8472861d331315f6d33b2241de046;p=fa-stable.git diff --git a/purchasing/inquiry/supplier_allocation_inquiry.php b/purchasing/inquiry/supplier_allocation_inquiry.php index 3b3de544..4ede5ca0 100644 --- a/purchasing/inquiry/supplier_allocation_inquiry.php +++ b/purchasing/inquiry/supplier_allocation_inquiry.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security=2; $path_to_root="../.."; include($path_to_root . "/includes/db_pager.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(); @@ -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,15 +194,15 @@ 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')) -{ +if (get_post('RefreshInquiry')) { $table->set_sql($sql); $table->set_columns($cols); - $Ajax->activate('doc_tbl'); } +$table->width = "90%"; +start_form(); - start_form(); - display_db_pager($table); - end_form(); +display_db_pager($table); + +end_form(); end_page(); ?>