X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=purchasing%2Finquiry%2Fsupplier_allocation_inquiry.php;h=4ede5ca03c68040dd6b05c96d2e10013705686d0;hb=e8ae3516539a520338117f25d401c0fc234973a4;hp=ee78a35271f1c4017e39aecd8df1730940c7aa94;hpb=e000d0b3fb245b02de604356b1f60c65b5f4962f;p=fa-stable.git diff --git a/purchasing/inquiry/supplier_allocation_inquiry.php b/purchasing/inquiry/supplier_allocation_inquiry.php index ee78a352..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'), @@ -189,6 +198,7 @@ if (get_post('RefreshInquiry')) { $table->set_sql($sql); $table->set_columns($cols); } +$table->width = "90%"; start_form(); display_db_pager($table);