projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed structure of tag_association table
[fa-stable.git]
/
inventory
/
manage
/
movement_types.php
diff --git
a/inventory/manage/movement_types.php
b/inventory/manage/movement_types.php
index e54ff3cb4d1606a12f6b15aa85584109038be017..5f75844fca8e536ddde2d7f5ce7aae2a6a8573ed 100644
(file)
--- a/
inventory/manage/movement_types.php
+++ b/
inventory/manage/movement_types.php
@@
-57,7
+57,7
@@
if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM')
function can_delete($selected_id)
{
$sql= "SELECT COUNT(*) FROM ".TB_PREF."stock_moves
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)
$result = db_query($sql, "could not query stock moves");
$myrow = db_fetch_row($result);
if ($myrow[0] > 0)