X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fpo_receive_items.php;h=836a05483ffc5874ecb9223d07501943efdf3509;hb=0eadb0e7549a8e90af92dac51b560f57918084ac;hp=8ad1ef068b10aa565e467ef13b906fd501fca5cf;hpb=da8311619dd73feae101d246a1957b972e00cbd2;p=fa-stable.git
diff --git a/purchasing/po_receive_items.php b/purchasing/po_receive_items.php
index 8ad1ef06..836a0548 100644
--- a/purchasing/po_receive_items.php
+++ b/purchasing/po_receive_items.php
@@ -10,6 +10,8 @@ include_once($path_to_root . "/purchasing/includes/purchasing_ui.inc");
$js = "";
if ($use_popup_windows)
$js .= get_js_open_window(900, 500);
+if ($use_date_picker)
+ $js .= get_js_date_picker();
page(_("Receive Purchase Order Items"), false, false, "", $js);
//---------------------------------------------------------------------------------------------------------------
@@ -26,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();
@@ -83,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);
@@ -257,13 +259,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)
{
@@ -284,7 +286,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 "