X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fmanage%2Fmovement_types.php;h=5f75844fca8e536ddde2d7f5ce7aae2a6a8573ed;hb=2a0f29497517eca1cde8b2832da5761edefb2268;hp=aacdda94d01912b58172c9e4098ac47671ffd777;hpb=0b253e5e0d23400838d3bfb4f27fb3fb2637b3ab;p=fa-stable.git diff --git a/inventory/manage/movement_types.php b/inventory/manage/movement_types.php index aacdda94..5f75844f 100644 --- a/inventory/manage/movement_types.php +++ b/inventory/manage/movement_types.php @@ -9,8 +9,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = 3; -$path_to_root="../.."; +$page_security = 'SA_INVENTORYMOVETYPE'; +$path_to_root = "../.."; include($path_to_root . "/includes/session.inc"); page(_("Inventory Movement Types")); @@ -57,7 +57,7 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM') function can_delete($selected_id) { $sql= "SELECT COUNT(*) FROM ".TB_PREF."stock_moves - WHERE type=" . systypes::inventory_adjustment(). " AND person_id=$selected_id"; + WHERE type=" . ST_INVADJUST. " AND person_id=$selected_id"; $result = db_query($sql, "could not query stock moves"); $myrow = db_fetch_row($result); if ($myrow[0] > 0)