X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=purchasing%2Fpo_receive_items.php;h=e0a584280be3dcf3860b7f63fec817754b997776;hb=41069728f318cd75cfecce474a7ac464e2894615;hp=e12b6a4203277fc86eba319c0afcdf4749bf9ff9;hpb=37f4a02e0f4bea58e5b2097d583bf9395ffc515f;p=fa-stable.git
diff --git a/purchasing/po_receive_items.php b/purchasing/po_receive_items.php
index e12b6a42..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)
{