X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fpo_receive_items.php;h=e0a584280be3dcf3860b7f63fec817754b997776;hb=41069728f318cd75cfecce474a7ac464e2894615;hp=3fa2705da45700657219e95dc4437f9bf0a50522;hpb=431531eebf3ba494002cfbf7ea36f9e82d4975c0;p=fa-stable.git diff --git a/purchasing/po_receive_items.php b/purchasing/po_receive_items.php index 3fa2705d..e0a58428 100644 --- a/purchasing/po_receive_items.php +++ b/purchasing/po_receive_items.php @@ -28,7 +28,7 @@ if (isset($_GET['AddedID'])) //echo "
"; //echo get_gl_view_str(25, $grn, _("View the GL Journal Entries for this Delivery")); - echo "
"; +// echo "
"; hyperlink_no_params("$path_to_root/purchasing/inquiry/po_search.php", _("Select a different purchase order for receiving items against")); display_footer_exit(); @@ -85,10 +85,10 @@ function display_po_receive_items() qty_cell($qty_outstanding); if ($qty_outstanding > 0) - text_cells(null, $ln_itm->line_no, $ln_itm->receive_qty, 10, 10, "align=right"); + qty_cells(null, $ln_itm->line_no, qty_format($ln_itm->receive_qty), "align=right"); else - text_cells(null, $ln_itm->line_no, $ln_itm->receive_qty, 10, 10, "align=right", - "", "disabled"); + qty_cells(null, $ln_itm->line_no, qty_format($ln_itm->receive_qty), "align=right", + "disabled"); amount_cell($ln_itm->price); amount_cell($line_total); @@ -154,18 +154,21 @@ function can_process() if (!is_date($_POST['DefaultReceivedDate'])) { display_error(_("The entered date is invalid.")); + set_focus('DefaultReceivedDate'); return false; } if (!references::is_valid($_POST['ref'])) { display_error(_("You must enter a reference.")); + set_focus('ref'); return false; } if (!is_new_reference($_POST['ref'], 25)) { display_error(_("The entered reference is already in use.")); + set_focus('ref'); return false; } @@ -259,13 +262,13 @@ if (isset($_POST['Update']) || isset($_POST['ProcessGoodsReceived'])) { $_POST[$line->line_no] = max($_POST[$line->line_no], 0); - if (!is_numeric($_POST[$line->line_no])) - $_POST[$line->line_no] = 0; + if (!check_num($line->line_no)) + $_POST[$line->line_no] = qty_format(0); if (!isset($_POST['DefaultReceivedDate']) || $_POST['DefaultReceivedDate'] == "") $_POST['DefaultReceivedDate'] = Today(); - $_SESSION['PO']->line_items[$line->line_no]->receive_qty = $_POST[$line->line_no]; + $_SESSION['PO']->line_items[$line->line_no]->receive_qty = input_num($line->line_no); if (isset($_POST[$line->stock_id . "Desc"]) && strlen($_POST[$line->stock_id . "Desc"]) > 0) { @@ -286,7 +289,7 @@ if (isset($_POST['ProcessGoodsReceived'])) start_form(false, true); display_grn_summary($_SESSION['PO'], true); -display_heading2(_("Items to Receive")); +display_heading(_("Items to Receive")); display_po_receive_items(); echo "
";