X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fallocations%2Fcustomer_allocation_main.php;h=e874d53d3879c03ce968558f39e03f68b18e1e43;hb=389721f442ea4dc96ba1cafd65919e717e0d8746;hp=4ba875bd9524161fa9ab081e0223281a28cbe007;hpb=e000d0b3fb245b02de604356b1f60c65b5f4962f;p=fa-stable.git diff --git a/sales/allocations/customer_allocation_main.php b/sales/allocations/customer_allocation_main.php index 4ba875bd..e874d53d 100644 --- a/sales/allocations/customer_allocation_main.php +++ b/sales/allocations/customer_allocation_main.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $path_to_root="../.."; $page_security = 3; include($path_to_root . "/includes/db_pager.inc"); @@ -13,13 +22,6 @@ if ($use_popup_windows) page(_("Customer Allocations"), false, false, "", $js); //-------------------------------------------------------------------------------- -if ($ret = context_restore()) { - if(isset($ret['customer_id'])) - $_POST['customer_id'] = $ret['customer_id']; -} -if (isset($_POST['_customer_id_editor'])) { - context_call($path_to_root.'/sales/manage/customers.php?debtor_no='.$_POST['customer_id'] ); -} start_form(); /* show all outstanding receipts and credits to be allocated */ @@ -74,13 +76,12 @@ function alloc_link($row) { return pager_link(_("Allocate"), "/sales/allocations/customer_allocate.php?trans_no=" - .$row["trans_no"] . "&trans_type=" . $row["type"] - ); + .$row["trans_no"] . "&trans_type=" . $row["type"], ICON_MONEY); } function amount_left($row) { - return $row["Total"]-$row["alloc"]; + return price_format($row["Total"]-$row["alloc"]); } function check_settled($row) @@ -95,7 +96,7 @@ $cols = array( _("Transaction Type") => array('fun'=>'systype_name'), _("#") => array('fun'=>'trans_view'), _("Reference"), - _("Date") => array('type'=>'date', 'ord'=>'asc'), + _("Date") => array('name'=>'tran_date', 'type'=>'date', 'ord'=>'asc'), _("Customer") => array('ord'=>''), _("Currency") => array('align'=>'center'), _("Total") => 'amount', @@ -115,6 +116,7 @@ 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); end_form();