X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fpo_receive_items.php;h=1c6e6d627a0280aff0a50deafff18578e7160f5b;hb=45a035785b9a820621da56dec93078b3ccd9832e;hp=5059807be0e433350209e5934cefe5c7501729c8;hpb=80dd97a37f674cc3691fa04af4c29607067566b2;p=fa-stable.git diff --git a/purchasing/po_receive_items.php b/purchasing/po_receive_items.php index 5059807b..1c6e6d62 100644 --- a/purchasing/po_receive_items.php +++ b/purchasing/po_receive_items.php @@ -29,16 +29,12 @@ page(_("Receive Purchase Order Items"), false, false, "", $js); if (isset($_GET['AddedID'])) { $grn = $_GET['AddedID']; - $trans_type = 25; + $trans_type = ST_SUPPRECEIVE; display_notification_centered(_("Purchase Order Delivery has been processed")); display_note(get_trans_view_str($trans_type, $grn, _("&View this Delivery"))); - //echo "
"; - //echo get_gl_view_str(25, $grn, _("View the GL &Journal Entries for this Delivery")); - -// echo "
"; hyperlink_params("$path_to_root/purchasing/supplier_invoice.php", _("Entry purchase &invoice for this receival"), "New=1"); hyperlink_no_params("$path_to_root/purchasing/inquiry/po_search.php", _("Select a different &purchase order for receiving items against")); @@ -49,7 +45,6 @@ if (isset($_GET['AddedID'])) //-------------------------------------------------------------------------------------------------- if ((!isset($_GET['PONumber']) || $_GET['PONumber'] == 0) && !isset($_SESSION['PO'])) -//if (isset($_GET['PONumber']) && !$_GET['PONumber'] > 0 && !isset($_SESSION['PO'])) { die (_("This page can only be opened if a purchase order has been selected. Please select a purchase order first.")); } @@ -126,7 +121,7 @@ function check_po_changed() // Otherwise if you try to fullfill item quantities separately will give error. $sql = "SELECT item_code, quantity_ordered, quantity_received, qty_invoiced FROM ".TB_PREF."purch_order_details - WHERE order_no=" . $_SESSION['PO']->order_no + WHERE order_no=".db_escape($_SESSION['PO']->order_no) ." ORDER BY po_detail_item"; $result = db_query($sql, "could not query purch order details"); @@ -180,7 +175,7 @@ function can_process() return false; } - if (!is_new_reference($_POST['ref'], 25)) + if (!is_new_reference($_POST['ref'], ST_SUPPRECEIVE)) { display_error(_("The entered reference is already in use.")); set_focus('ref');